[D-runtime] D Concurrent GC

Sean Kelly sean at invisibleduck.org
Wed Sep 15 12:04:46 PDT 2010


Here's a quick and dirty port of the GC to druntime.  I've included a new posix.mak (as posix.mak.new) and the code itself in gcnew/.  What I did was rename src/gc to src/gcbase and create a symbolic link from src/gc to src/gcnew.  Then build with posix.mak.new, etc.  I marked most changes with TODO or BUG, but the pertinent bits were that I added gc_qalloc() and commented out the PointerMap stuff.  I haven't done more than verify that the GC works for some unittests so I'd love to see some more thorough testing.  Porting to Windows may be a bit more involved because I believe I saw a posix header imported somewhere that isn't inside a version(Posix) block.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcnew.zip
Type: application/zip
Size: 32332 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/d-runtime/attachments/20100915/15bd74c7/attachment-0001.zip>


More information about the D-runtime mailing list