alexcrichton requested dicej for a review on PR #14638.
alexcrichton opened PR #14638 from alexcrichton:wake-more-waiters to bytecodealliance:main:
When an event is delivered to a waitable set technically any thread in that set is candidate for receiving the event, but prior to this commit Wasmtime would only ever deliver the event to one arbitrary thread in the set. This caused issues when that thread cannot run due to the instance's lock being held, meaning that other candidate threads couldn't run to completion and actually get the event. This commit handles this situation by waking up other threads in in this situation. Only one thread will still get the event, and others go back to sleep if it's stolen.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.mdPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-core-reviewers for a review on PR #14638.
:thumbs_up: dicej submitted PR review.
alexcrichton added PR #14638 Wake up more waiters on waitable-sets to the merge queue.
:check: alexcrichton merged PR #14638.
alexcrichton removed PR #14638 Wake up more waiters on waitable-sets from the merge queue.
Last updated: Oct 11 2026 at 04:10 UTC