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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 30 18:29:47 PDT 2013


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

           Summary: GC realloc and free don't ignore interior pointers
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: safety0ff.bugz at gmail.com


--- Comment #0 from safety0ff.bugz <safety0ff.bugz at gmail.com> 2013-10-30 18:29:45 PDT ---
The documentation / spec [1][2] states that realloc and free should do nothing
when they're passed interior pointers.

Currently realloc / free still operate on the underlying memory blocks
regardless.

I started working on the fix for realloc but decided that it should really be
discussed before spending more time on it.

Discuss :)

----
[1] http://dlang.org/phobos/core_memory.html#.GC.realloc
[2] http://dlang.org/phobos/core_memory.html#.GC.free

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