Stream: git-wasmtime

Topic: wasmtime / PR #11686 Put each component in its own store ...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2025 at 18:47):

alexcrichton opened PR #11686 from alexcrichton:wasmtime-wast-new-store-per-component to bytecodealliance:main:

This commit refactors the wasmtime-wast crate to place each component in its own store. This is in contrast to core wasm testing where all instances get placed in the same store. The reason for this is that components, in particular async state, is only fully defined so long as a trap doesn't happen and once a trap happens it's expected the entire store is torn down. This removes the need for the store to keep track of exactly which instance all async tasks are associated with to ensure that once any of them trap only the precise set of tasks necessary are torn down. Instead Wasmtime can rely on embedders throwing away Store<T> entirely.

The refactoring here provides a hook in WastContext to configure the store but otherwise a new store is manufactured for all component instances. Core wasm is unaffected. Tests are also unaffected as same-store behavior isn't actually required by any tests.

<!--
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 (Sep 11 2025 at 18:47):

alexcrichton requested fitzgen for a review on PR #11686.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2025 at 18:47):

alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #11686.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2025 at 18:47):

alexcrichton requested wasmtime-core-reviewers for a review on PR #11686.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2025 at 20:51):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 11 2025 at 21:13):

fitzgen merged PR #11686.


Last updated: Dec 06 2025 at 06:05 UTC