[Issue 11393] GC realloc and free don't ignore interior pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 18:41:26 PDT 2013


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



--- Comment #1 from safety0ff.bugz <safety0ff.bugz at gmail.com> 2013-10-30 18:41:25 PDT ---
I suppose this should have been spit into two bugs, but for now we can keep the
discussion focused.

The reason fixing realloc requires discussion is that fixing this may break
exiting code in the case where it is passed an interior pointer with a non zero
size parameter.

Fixing the case where the pointer is internal and either realloc is called with
size zero or free is called does not break existing code unless the GC is
disabled, where it will cause memory leaks.

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