memory.discard

This page demonstrates the experimental memory.discard instruction for WebAssembly.

It allows you to touch and discard up to 2GiB of WebAssembly memory. Open your favorite process viewer and mess around.

Source is on GitHub.

Your browser does not support the memory.discard instruction.

If you are using Firefox Nightly, support can be enabled in about:config by setting javascript.options.wasm_memory_control to true.

A WebAssembly module has been instantiated with 2GiB of memory.