Thread overview
[Issue 13642] std.container.Array: change of length reallocates without notifying GC
Oct 21, 2014
safety0ff.bugz
October 21, 2014
https://issues.dlang.org/show_bug.cgi?id=13642

safety0ff.bugz <safety0ff.bugz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz@gmail.com

--- Comment #1 from safety0ff.bugz <safety0ff.bugz@gmail.com> ---
Right, the realloc in length(size_t) should be replaced with similar code to
reserve, i.e.:

static if (hasIndirections!T)
    // use malloc/copy/free along with GC.addRange & GC.removeRange
else
    // use realloc

--
March 05, 2018
https://issues.dlang.org/show_bug.cgi?id=13642

--- Comment #2 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/e837813478298593fdb2799e5af99b40a3ccb7b3 Fix issue 13642 - Change of length reallocates without notifying GC

https://github.com/dlang/phobos/commit/997464b4b2a4a0af0fd6eeef1a9b3770c54762b9 Merge pull request #4885 from rjframe/arraymem

Fix issue 13642 - Change of length reallocates without notifying GC merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>

--
March 05, 2018
https://issues.dlang.org/show_bug.cgi?id=13642

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--