Use `mmap` `std.heap.page_allocator` impl when compiling for Wasm + libc
When linking libc, it should be the libc that manages the heap. The main
Wasm memory might have been configured as non-growable, which makes
`WasmAllocator` a poor default and causes the common `DebugAllocator`
use case fail with OOM errors unless the user uses `std_options` to
override the default page allocator. Additionally, on Emscripten,
growing Wasm memory without notifying the JS glue code will cause array
buffers to get detached and lead to spurious crashes.
c9fa8e46dfCarl Åstholm committed on 1/3/2026, 12:55:11 AM· committed by Andrew Kelleyparent1bf2975