Bug 16398 – experimental allocators, add aligned reallocation for Posix

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-08-17T12:54:42Z
Last change time
2020-03-21T03:56:35Z
Keywords
pull
Assigned to
No Owner
Creator
Илья Ярошенко

Comments

Comment #0 by ilyayaroshenko — 2016-08-17T12:54:42Z
std.experimental.allocator.mallocator. AlignedMallocator does not have alignedRealocate
Comment #1 by b2.temp — 2017-11-13T00:01:36Z
This is an ER only for Posix actually. Under Windows, 1. the MS std C lib has the right primitive. 2. the allocator has custom primitives for the Mars std C lib (which does a new alloc + copy) Under Posix, the alligned alloc routines exist but only alloc / free. So because of 2. i don't see why alloc + copy wouldn't not be done for Posix.
Comment #2 by b2.temp — 2017-11-13T02:01:21Z
Comment #3 by github-bugzilla — 2017-11-13T21:22:39Z
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a196f171f6cc0d6936d7b2d5fc4fc7e38b026514 fix issue 16398 - experimental allocators, add aligned reallocation for Posix https://github.com/dlang/phobos/commit/0308bd6b9a080501b931f43d1e39b1c3cf79c29a Merge pull request #5857 from BBasile/issue-16398 fix issue 16398 - experimental allocators, add aligned reallocation for Posix
Comment #4 by github-bugzilla — 2017-12-18T22:56:47Z
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a196f171f6cc0d6936d7b2d5fc4fc7e38b026514 fix issue 16398 - experimental allocators, add aligned reallocation for Posix https://github.com/dlang/phobos/commit/0308bd6b9a080501b931f43d1e39b1c3cf79c29a Merge pull request #5857 from BBasile/issue-16398