mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-02 12:50:16 +08:00
-Dkwemu-atomics adds the wasm atomics and bulk-memory features to the wasm64 objects, so wasm-ld can link them into a kernel built with --shared-memory. The JIT declares its env.memory import shared when the host reports caps bit 3, the host creates a shared WebAssembly.Memory when the module's import is shared (found by retrying the instantiation on a LinkError that says so), and the WASI imports and the JIT host copy out of the memory where browsers refuse shared views.