Re: Pinned objects

Paolo Molaro <[email protected]> Fri, 15 Aug 2003 11:52:02 +0200
Newsgroups gmane.comp.gnome.mono.garbage-collection
Message-ID <[email protected]>
On 08/14/03 Fernando Diaz wrote:
> If you take a look to the .NET, it uses a heap for pinned and not pinned
> objets and a Mark-Compact collector. Depending on the time that the
> pinned objects have to be pinned it is a good idea, but when the pinned
> objects have pinned for a long time I think that it will be better to
> have two heaps, one for pinned objects and other for non-pinned objects.
> The pinned-heap will be collected with a non moving collector. But all
> of this depends on the time that an object is pinned.
> 
> What is your opinion about this? Will it be better a single heap or a
> heap for pinned objects and a heap for non-pinned objects?

Any object can be pinned at any time and you can't move an object 
to another heap when it's pinned, it would have a big performance hit. 
So it doesn't make sense to have a heap for pinned objects and one 
for other objects.

lupus

-- 
-----------------------------------------------------------------
[email protected]                                     debian/rules
[email protected]                             Monkeys do it better
_______________________________________________
Mono-gc-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-gc-list