[Issue 9092] GC.extend allocates less then it reports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 3 13:49:58 PST 2012


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



--- Comment #4 from monarchdodra at gmail.com 2012-12-03 13:49:53 PST ---
(In reply to comment #3)
> You expect different stuff from GC.extend than its author...

Ok, I think I get it. This leads to 3 questions (if you'd care to educate me):
1. What exactly are inside those 16 bytes? I'd say something along the lines of
pointer to destructor, and currently used vs capacity?
2. Why is this issue *only* showing up when my allocation sizes are exact
multiples of 0x10000 ?
3. Would it be possible to somehow have extend detect when it is given an
"array allocated pointer"? In that case, it could either refuse to extend, or
assert, or something?

I was currently looking into appender, so I'll try to fix it in such a way as
to not have this problem anymore.

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