[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 10:27:18 PST 2011


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


deadalnix <deadalnix at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |deadalnix at gmail.com


--- Comment #4 from deadalnix <deadalnix at gmail.com> 2011-12-11 10:27:18 PST ---
(In reply to comment #1)
> 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.

Isn't GC has a flag that says if something may contains pointer or not ?

Why this flag is set when allocation an array of long ?

-- 
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