Comment by InkCanon
3 days ago
"How do browsers take advantage of this fact? By reserving 4GB of memory for every single WebAssembly module."
Does reserve mean it has exclusive access to? Because it can't possibly be that every single wasm module takes 4GB!
It's allocating 4 GB out of the virtual address space, not 4 GB of physical memory.
It's really reserving 4GB of the process's own address space, but the only part of it that physical memory has to get used for is the part that actually has stuff stored in it.