Dear Community,
I'm curious about how WebAssembly (WASM) handles malloc, as I didn't see the implementation of the brk syscall in wasi-libc. How is heap memory managed inside the WASM user space?
Best,
The core WebAssembly spec has a memory.grow instruction for extending linear memory; that's what wasi-libc uses.
Last updated: Dec 06 2025 at 05:03 UTC