Stream: git-wasmtime

Topic: wasmtime / issue #5643 `fd_fdstat_set_flags` requires mut...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 27 2023 at 01:20):

abrown opened issue #5643:

In https://github.com/bytecodealliance/wasmtime/pull/5326, we discussed extensively how to resolve the build errors related to fd_fdstat_set_flags, a wasi-common function. When attempting to apply locking to wasi-common to enable multi-threaded access, this function was the sole remaining issue preventing the implementation of WasiSnapshotPreview1 from using &self (what we wanted to switch to) instead of the current &mut self. If fd_fdstat_set_flags could take &self instead, this would result in a variety of benefits:

At some point I had heard of discussions to modify this API; if and when that happens, the above improvements could be made.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 31 2023 at 05:15):

alexcrichton labeled issue #5643:

In https://github.com/bytecodealliance/wasmtime/pull/5326, we discussed extensively how to resolve the build errors related to fd_fdstat_set_flags, a wasi-common function. When attempting to apply locking to wasi-common to enable multi-threaded access, this function was the sole remaining issue preventing the implementation of WasiSnapshotPreview1 from using &self (what we wanted to switch to) instead of the current &mut self. If fd_fdstat_set_flags could take &self instead, this would result in a variety of benefits:

At some point I had heard of discussions to modify this API; if and when that happens, the above improvements could be made.


Last updated: Oct 23 2024 at 20:03 UTC