Stream: git-wasmtime

Topic: wasmtime / PR #11796 move `ConcurrentState` from `Compone...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 17:30):

dicej requested alexcrichton for a review on PR #11796.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 17:30):

dicej opened PR #11796 from dicej:fix-11226 to bytecodealliance:main:

This has a few benefits:

The main drawback is that, if one of several instances within a single store traps, it effectively means all instances have trapped, and the store can't be used to create new instances. The way to avoid that is to use separate stores for instances which must be isolated from others.

As a result of this change, a lot of code had to move from e.g. impl Instance to e.g. impl StoreOpaque, so the diff is pretty huge, but the changes themselves are almost entirely non-functional.

Fixes #11226

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 17:30):

dicej requested wasmtime-core-reviewers for a review on PR #11796.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 17:30):

dicej requested wasmtime-wasi-reviewers for a review on PR #11796.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 17:49):

dicej updated PR #11796.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 18:25):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 18:25):

alexcrichton created PR review comment:

Would it makes sense to have a concurrent_disabled.rs which has ZST for ConcurrentState with no methods? That would avoid this #[cfg] for example and help encapsulate "all the conditional stuff is in this file" too

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 18:25):

alexcrichton created PR review comment:

I'm wary of making this public to the whole crate as it generally makes it harder to maintain abstraction boundaries. Would it be possible to encapsulate whatever's needed within this file instead?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 18:30):

dicej updated PR #11796.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 18:49):

dicej updated PR #11796.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 18:59):

dicej updated PR #11796.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 19:00):

alexcrichton edited PR #11796:

This has a few benefits:

The main drawback is that, if one of several instances within a single store traps, it effectively means all instances have trapped, and the store can't be used to create new instances. The way to avoid that is to use separate stores for instances which must be isolated from others.

As a result of this change, a lot of code had to move from e.g. impl Instance to e.g. impl StoreOpaque, so the diff is pretty huge, but the changes themselves are almost entirely non-functional.

Fixes #11226
Fixes #11651

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 19:01):

alexcrichton edited PR #11796:

This has a few benefits:

The main drawback is that, if one of several instances within a single store traps, it effectively means all instances have trapped, and the store can't be used to create new instances. The way to avoid that is to use separate stores for instances which must be isolated from others.

As a result of this change, a lot of code had to move from e.g. impl Instance to e.g. impl StoreOpaque, so the diff is pretty huge, but the changes themselves are almost entirely non-functional.

Fixes #11226
Fixes #11249
Fixes #11651

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 19:34):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 06 2025 at 20:16):

dicej merged PR #11796.


Last updated: Dec 06 2025 at 07:03 UTC