# delete std.heap.WasmPageAllocator · gitcafe/zig

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

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

Visibility: public

Requested revision: fecdc53a48970d55fc3ac1beb5be64b8589146cf

Requested commit: fecdc53a48970d55fc3ac1beb5be64b8589146cf

Commit: fecdc53a48970d55fc3ac1beb5be64b8589146cf

Tree: c6400a237461c6f134dbc977eceae650de435b98

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
delete std.heap.WasmPageAllocator

This allocator has no purpose since it cannot truly fulfill the role of
page allocation, and std.heap.wasm_allocator is better both in terms of
performance and code size.

This commit redefines `std.heap.page_allocator` to be less strict:

"On operating systems that support memory mapping, this allocator makes
a syscall directly for every allocation and free. Otherwise, it falls
back to the preferred singleton for the target. Thread-safe."

This now matches how it was actually being implemented, and matches its
use sites - which are mainly as the backing allocator for
`std.heap.ArenaAllocator`.

```

## Parents

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

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