zig/lib/std/heap
Andrew Kelley fecdc53a48 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`.
2025-01-29 21:10:20 -08:00
..
arena_allocator.zig add std.testing.random_seed 2024-07-23 11:43:12 -07:00
general_purpose_allocator.zig delete std.heap.WasmPageAllocator 2025-01-29 21:10:20 -08:00
log_to_writer_allocator.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
logging_allocator.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
memory_pool.zig std.heap.memory_pool: make preheat() usable after init() 2025-01-28 00:06:54 +01:00
PageAllocator.zig Avoid unnecessary operation in PageAllocator. 2024-05-10 22:51:52 +03:00
sbrk_allocator.zig std: avoid field/decl name conflicts 2024-08-29 20:39:11 +01:00
ThreadSafeAllocator.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
WasmAllocator.zig delete std.heap.WasmPageAllocator 2025-01-29 21:10:20 -08:00