[Issue 7095] GC doesn't return or reuse unused memory [D2.056]
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Dec 11 09:47:58 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7095
David Simcha <dsimcha at yahoo.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dsimcha at yahoo.com
         Resolution|                            |INVALID
--- Comment #1 from David Simcha <dsimcha at yahoo.com> 2011-12-11 09:47:56 PST ---
D's GC isn't fully precise yet.  In other words, it can't always tell the
difference between a pointer and a non-pointer.  When you allocate an
80-megabyte array, the probability that some non-pointer will look like it
points into the array if interpreted as a pointer is pretty high.  
This is a fundamental limitation of the current garbage collector design,
rather than a bug.  As a workaround, it's best to use C's malloc for very large
arrays.
-- 
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