# std.heap: make wasm32 PageAllocator handle large allocation · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/d02242661e667e67b07faf69490bb0db3dfd4bf0)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: d02242661e667e67b07faf69490bb0db3dfd4bf0

Requested commit: d02242661e667e67b07faf69490bb0db3dfd4bf0

Commit: d02242661e667e67b07faf69490bb0db3dfd4bf0

Tree: 59ac3378117f2684b4d92a26adbc0d967a171180

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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 3f3003097cbf5a6ad9e0dfc29b2cafbe2e35dded.

```

## Parents

- [ef761c2cbc5c9a06da5c09de389a1d778731d170](https://git.cafe/gitcafe/zig/commit/ef761c2cbc5c9a06da5c09de389a1d778731d170?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/d02242661e667e67b07faf69490bb0db3dfd4bf0?format=markdown)
