Closed sin-ack closed 1 year ago
The following change creates a compiler error: https://github.com/ziglang/zig/commit/ceb0a632cfd6a4eada6bd27bf6a3754e95dcac86
The Allocator API no longer handles allocations with alignment > page size. For this, we're going to have to use platform-specific functions until a std API for this emerges.
Allocator
std
POSIX: posix_memalign https://linux.die.net/man/3/posix_memalign Windows: VirtualAlloc2 https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc2 WASM: ??? I wasn't able to find any information on aligned allocations.
posix_memalign
VirtualAlloc2
Fixed with befc715ca9f558c6ca87a9d65d0ba71995b291a7.
The following change creates a compiler error: https://github.com/ziglang/zig/commit/ceb0a632cfd6a4eada6bd27bf6a3754e95dcac86
The
Allocator
API no longer handles allocations with alignment > page size. For this, we're going to have to use platform-specific functions until astd
API for this emerges.POSIX:
posix_memalign
https://linux.die.net/man/3/posix_memalign Windows:VirtualAlloc2
https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualalloc2 WASM: ??? I wasn't able to find any information on aligned allocations.