On Mon, Nov 1, 2021 at 12:33 PM Joan Lledó <jlle...@mailfence.com> wrote:
> Thanks for your explanations, it makes sense but there's still one thing I 
> don't understand: if memory_object_create_proxy() is the owner of the pager 
> it receives as parameter, and the caller doesn't care about releasing it, 
> then where is it released?

When the proxy itself is destroyed. Namely, in
memory_object_proxy_notify () there's a ipc_port_release_send
(proxy->object) call.

> I modified my patch to met all your points, I assumed the function to release 
> the reference is ipc_port_release_send(). Tell me if I'm wrong.

Yeah, I think that's one one.

Sergey

Reply via email to