[Issue 11021] Huge GC leak leads to crash; GC uses 7x more memory

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 13 10:19:49 PDT 2013


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



--- Comment #6 from Orvid King <blah38621 at gmail.com> 2013-09-13 10:19:48 PDT ---
(In reply to comment #5)
> In loop i calling collect, so gc should frees the memory.

You should really be clearing the existing array rather than allocating a new
one, but that's beside the point. When you call the GC manually, the array is
still referenced in local variable, if you were to reset that local variable
before calling the GC, then it should collect it correctly.

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