0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

std.heap: make wasm32 PageAllocator handle large allocation

When a number of bytes to be allocated is so great that alignForward()
is not possible, return `error.OutOfMemory`.

Companion commit to 3f3003097c.
This commit is contained in:
Andrew Kelley 2022-10-30 19:28:26 -07:00
commit d02242661e