[Issue 3929] New: GC.free() creates subtle bugs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 10 20:17:27 PST 2010


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

           Summary: GC.free() creates subtle bugs
           Product: D
           Version: 2.041
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: druntime
        AssignedTo: sean at invisibleduck.org
        ReportedBy: dsimcha at yahoo.com


--- Comment #0 from David Simcha <dsimcha at yahoo.com> 2010-03-10 20:17:24 PST ---
See bug 3930 for one observable manifestation of this bug, though I'm filing
this as a separate bug report because it's probably the root cause of a lot of
general weird behavior I've noticed in 2.041.

It seems that, when GC.free() is called on an array now that Steve's LRU patch
is in, the BlkInfo stays in the LRU cache, leading to subtle bugs.  The patch
seems to rely on the reference from cache preventing the array from getting
GC'd.  This is also bad in that it prevents memory from being reclaimed.  A
proper fix would be for the cache to be cleared whenever the GC runs or
GC.free() is called.

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


More information about the Digitalmars-d-bugs mailing list