www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11446] New: GC realloc doesn't ignore non-GC owned pointers

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: nobody puremagic.com
        ReportedBy: safety0ff.bugz gmail.com


--- Comment #0 from safety0ff.bugz <safety0ff.bugz 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/qmiayckycycetnumulbn 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: -------
Nov 05 2013