[Issue 11446] New: GC realloc doesn't ignore non-GC owned pointers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 5 10:32:29 PST 2013
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 at puremagic.com
ReportedBy: safety0ff.bugz at gmail.com
--- Comment #0 from safety0ff.bugz <safety0ff.bugz at 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: -------
More information about the Digitalmars-d-bugs
mailing list