1package experimental
2
3import "github.com/tetratelabs/wazero/api"
4
5// CoreFeaturesThreads enables threads instructions ("threads").
6//
7// # Notes
8//
9// - The instruction list is too long to enumerate in godoc.
10// See https://github.com/WebAssembly/threads/blob/main/proposals/threads/Overview.md
11// - Atomic operations are guest-only until api.Memory or otherwise expose them to host functions.
12// - On systems without mmap available, the memory will pre-allocate to the maximum size. Many
13// binaries will use a theroetical maximum like 4GB, so if using such a binary on a system
14// without mmap, consider editing the binary to reduce the max size setting of memory.
15const CoreFeaturesThreads = api.CoreFeatureSIMD << 1