diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-01-29 15:24:24 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-01-29 21:10:20 -0800 |
| commit | fecdc53a48970d55fc3ac1beb5be64b8589146cf (patch) | |
| tree | c6400a237461c6f134dbc977eceae650de435b98 /lib/std/debug.zig | |
| parent | cd365b8b824efefb1948c4208722693646510cad (diff) | |
| download | zig-fecdc53a48970d55fc3ac1beb5be64b8589146cf.tar.gz zig-fecdc53a48970d55fc3ac1beb5be64b8589146cf.zip | |
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`.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
