https://d.puremagic.com/issues/show_bug.cgi?id=11446

           Summary: GC realloc doesn't ignore non-GC owned pointers
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nob...@puremagic.com
        ReportedBy: safety0ff.b...@gmail.com


--- Comment #0 from safety0ff.bugz <safety0ff.b...@gmail.com> 2013-11-05 
10:32:28 PST ---
According to the documentation [1], GC.realloc should do nothing if passed a
non-GC owned pointers.

Currently if passed a non-zero size parameter along with the non-GC pointer it
will allocate new memory and copy the contents.


Discussion thread:
http://forum.dlang.org/thread/qmiayckycycetnumu...@forum.dlang.org

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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to