bytecodealliance / bytecodealliance/wasmtime

WASI randomness should not require a mutex

Open
#5,660 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.