Stream: git-wasmtime

Topic: wasmtime / PR #14906 Remove thread-switching around compl...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2026 at 16:11):

alexcrichton opened PR #14906 from alexcrichton:remove-thread-switching to bytecodealliance:main:

This commit adjusts the behavior added in #12736 where the thread identity was saved/restored around component model futures/streams being completed. Later in #13949 though the spec was refined to clarify that thread identity during lowering is not possible to witness, which meant that after that change the thread-switching was technically all dead code. Thread IDs can go away at any time and aren't required to outlive future/stream operations, so this now-vestigial code can lead to spurious traps using wrong table slots. Here all the switching is just removed entirely since it's no longer necessary.

<!--
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 review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

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 21 2026 at 16:12):

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

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2026 at 16:19):

alexcrichton removed the review request for wasmtime-core-reviewers from PR #14906.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2026 at 16:19):

alexcrichton requested cfallin for a review on PR #14906.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 21 2026 at 18:51):

github-actions[bot] added the label wasmtime:api on PR #14906.

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

:thumbs_up: cfallin submitted PR review.

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

cfallin added PR #14906 Remove thread-switching around completed futures/streams to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 23 2026 at 23:21):

:check: cfallin merged PR #14906.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 23 2026 at 23:21):

cfallin removed PR #14906 Remove thread-switching around completed futures/streams from the merge queue.


Last updated: Oct 31 2026 at 23:03 UTC