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.