[Mono-dev] [Patch] Make Boehm GC stack scanning less aggressive

Dick Porter dporter at codicesoftware.com
Tue Oct 20 10:44:55 EDT 2009

Hi all

The attached patch makes the stack marking in libgc much less
aggressive.  Instead of marking every object that happens to be pointed
to by random numbers, it uses the descriptor-based scanning function

I think this is safe for mono, as (as was pointed out to me) every
allocation has a descriptor.

It fixes the stress-test that David posted a week or two ago, and in the
real world it allows our server to free up much more memory.  It has
been tested on a production server.


- Dick

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gc-stack-diff
Type: text/x-patch
Size: 950 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091020/56ace2c0/attachment.bin 

More information about the Mono-devel-list mailing list