[Issue 13801] Garbage collector fails to work after lots of small allocations

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Dec 7 08:48:47 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13801

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de

--- Comment #5 from Rainer Schuetze <r.sagitario at gmx.de> ---
AFAIK the heap on OSX starts 0x 0x1_0000_0000, so your "b" members create false
pointers into the memory chunks into the arrays allocated in the while(true)
loop. That's why they are never collected.

You might want to try one of the proposed precise GCs:
https://github.com/D-Programming-Language/druntime/pull/1022 or
https://github.com/D-Programming-Language/druntime/pull/1057

--


More information about the Digitalmars-d-bugs mailing list