aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-01-29 15:24:24 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-01-29 21:10:20 -0800
commitfecdc53a48970d55fc3ac1beb5be64b8589146cf (patch)
treec6400a237461c6f134dbc977eceae650de435b98 /src
parentcd365b8b824efefb1948c4208722693646510cad (diff)
downloadzig-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 'src')
0 files changed, 0 insertions, 0 deletions