[Mono-dev] Reference queue

Konrad M. Kruczyński konrad.kruczynski at gmail.com
Tue Jan 24 09:42:00 UTC 2012


On Mon, 2012-01-23 at 23:35 -0200, Rodrigo Kumpera wrote:
> 
> There is no specially collector for finalizable objects. The finalizer
> will be called
> around the same time the callback for such an object would be. 

I meant the sgen equivalent of the f-reachable queue. Callback will be
called around the same time, I agree, but the object itself (with the
one it points) can stay in memory longer.

> Even if performance was backed in, it would not help a lot since you
> have the large
> bottleneck of file backed. 

As I said, I would rather not delete file directly on the callback's
thread, but queue its deletion. Also the mentioned approach can be
useful for other kinds of resources.

--
Regards,
Konrad




More information about the Mono-devel-list mailing list