http://d.puremagic.com/issues/show_bug.cgi?id=3463

           Summary: Integrate Precise Heap Scanning Into the GC
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: patch
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: s...@invisibleduck.org
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2009-11-01 10:45:26 PST ---
Created an attachment (id=487)
Patches to the GC

I've created patches that allow for precise heap scanning in the GC by storing
a pointer to pointer offset information in the last (void*).sizeof bytes of
each allocated memory block that is to be scanned.  The attached patch patches
gcx.d to do this, and fixes a few other minor issues in the runtime to make
everything compatible.

By default, if no bitmask is provided, a conservative bitmask is used to
replicate the old behavior.  The bitmask format is documented in
bitmaskTempl.d, which also provides templates for generating the masks, some
basic tests to make sure the precise heap scanning works, and prototypes of
functions for creating precisely scanned arrays and class instances.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to