bytecodealliance / bytecodealliance/wasmtime
WASI randomness should not require a mutex
Open
wasm-proposal:threads
- Dominant language
- Rust
- Stars
- 18.6k
- Forks
- 1.8k
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 126
Description
In #5484, in order to handle mutability in the `WasiCtx` table, the source of randomness in `wasi-common` was wrapped in a `Mutex`. This solves the compiler errors related to mutable access of the the field, but there is surely some refactoring that avoids locking altogether.
Contributor guide
Assessment
This issue has not been assessed yet.