[Issue 3284] snn linked programs never release memory back to the OS

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 22 03:56:03 PDT 2016


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

Cauterite <cauterite at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |---

--- Comment #5 from Cauterite <cauterite at gmail.com> ---
My mistake; your adjusted test does in fact leave a massive working set.
I think I misunderstood the original bug report, because when you call
GC.minimize() it does successfully reduce working set to normal size.

So the exact problem then is that the GC doesn't call minimize() automatically
when it is appropriate. Currently, minimize() is only ever called when an
allocation fails.

Ideally the GC should minimize during collection whenever the amount of unused
reserved memory reaches some threshold. With my limited knowledge of the GC's
internals this sounds like a simple patch, so I might give it a crack soon.
Lest this bug remain open for 7 whole years.

--


More information about the Digitalmars-d-bugs mailing list