Stream: wasi-threads

Topic: #5326


view this post on Zulip Andrew Brown (Jan 05 2023 at 18:10):

@Alex Crichton, @bstrie, @Harald Hoyer, @Nathaniel McCallum, @Dan Gohman: hopefully everyone is back from vacation (I am!) so I wanted to revive discussions we had had previously about https://github.com/bytecodealliance/wasmtime/pull/5326 (Harald's PR to remove mutability in wasi-common that Benjamin took over). Before I left in December I published https://github.com/bytecodealliance/wasmtime/pull/5484, which implements wasi-threads in Wasmtime based on #5326 and a few other PRs -- those other PRs have now been merged and #5326 is the last big roadblock (IMHO) to making threads available in Wasmtime. @bstrie, you mentioned to me somewhere that you had talked to @Dan Gohman and figured out something that would help this move forward? Can we discuss here and see what is necessary to get this merged? @Alex Crichton had some comments in his review as well that might need to get factored in to all of this.

This patch adds interior mutability to the WasiCtx Table and the Table elements. Major pain points: File only needs RwLock<cap_std::fs::File> to implement File::set_fdflags() on Windows, because o...
This PR builds on several other under-review PRs to demonstrate a working wasi-threads implementation in Wasmtime. The first three commits are cherry-picked from the following PRs: #5326 #5471 #54...

Last updated: Dec 23 2024 at 12:05 UTC