[Mono-dev] GC Safe Points by Polling

Sanjoy Das sanjoy at playingwithpointers.com
Wed Apr 14 10:35:25 EDT 2010

I've attached a patch that implements GC safe points via polling. I was
wondering if I could get some feedback since my GSoC work shall largely
be based on the same code.

Simply put, the idea is to stop all threads first and then advance the
ones running managed code to the next nearest safe point.

Though the patch has not been tested very extensively, I can verify that

 * Passes all tests run by 'make check' in the project root.
 * Passes all the mscorlib tests.
 * Causes a < 2 % performance penalty with pystones / ironpython. 

The patch also includes certain other seemingly unrelated changes. They
are required for the project to build successfully.


Sanjoy Das
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patchfile.sgen.gc_safe_points
Type: text/x-patch
Size: 14141 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100414/f8fa4f7c/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100414/f8fa4f7c/attachment-0003.bin 

More information about the Mono-devel-list mailing list