[Mono-devel-list] [PATCH] Reuse GCHandle slots

Ben Maurer bmaurer at users.sourceforge.net
Sat Feb 21 00:57:25 EST 2004


Hello,

The attached patch allows the runtime to reuse freed GCHandle slots.
This helps out with code that effectively acts like:

for (;;) GCHandle.Alloc (o).Free ();

Right now, the above code will suck up memory (it took me 30 sec or so
to get up to 100 mb)

-- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-gchandles.patch
Type: text/x-patch
Size: 11751 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040221/d55f8f26/attachment.bin 


More information about the Mono-devel-list mailing list