Stream: git-wasmtime

Topic: wasmtime / PR #13926 Avoid dangling references to exited ...


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

alexcrichton opened PR #13926 from alexcrichton:dangling-thread-fix to bytecodealliance:main:

This commit is a refactor of the HostTask::caller field to no longer refer to a QualifiedThreadId. This is not valid to store within a HostTask because threads can exit while a host task is still running. More generally a caller field isn't valid to store because tasks can exit without blocking on callees, but that refactoring is left for another day.

Otherwise most of this commit is juggling state and moving things around now that caller is no longer present. I've attempted to explicitly pass it around in a few places and notably delineate boundaries of tasks entering/exiting a bit more clearly in a few locations. This commit also surface WebAssembly/component-model#678 which is something we'll have to address in the future as well, and now it's got a FIXME for the primary location of where the chosen task to lower with is suspect.

Closes #13890

<!--
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 (Jul 21 2026 at 18:51):

alexcrichton requested dicej for a review on PR #13926.

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

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

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

alexcrichton updated PR #13926.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 21:04):

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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 21:30):

:thumbs_up: dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 21:38):

alexcrichton added PR #13926 Avoid dangling references to exited threads to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 22:15):

:check: alexcrichton merged PR #13926.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 21 2026 at 22:15):

alexcrichton removed PR #13926 Avoid dangling references to exited threads from the merge queue.


Last updated: Jul 29 2026 at 05:03 UTC