[Issue 11139] malloc/emplace resulting in memory corruption

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 13 08:17:07 PDT 2013


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



--- Comment #7 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-10-13 08:17:06 PDT ---
(In reply to comment #6)
> 
> Both are correct. Having a look, GC.addRange seems more correct for
> struct/classes.
> 

See collection routine in the GC.

---
// Scan roots[]
mark(roots, roots + nroots);

// Scan ranges[]
for (n = 0; n < nranges; n++)
    mark(ranges[n].pbot, ranges[n].ptop);
---

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