Skip to content

Maintain separate task queues for each executor - #1795

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
tschneidereit:separate-task-queues
Nov 19, 2026
Merged

alexcrichton merged 1 commit into
bytecodealliance:mainfrom
tschneidereit:separate-task-queues

Conversation

@tschneidereit

Copy link
Copy Markdown
Member

rust_spawn now pushes the task onto a queue in the SharedTaskState its ptr argument points to, and each executor drains only its own queue. Previously all executors of one wit-bindgen copy shared a static queue, so a block_on call ran tasks that the enclosing task had spawned earlier in the same poll.

`rust_spawn` now pushes the task onto a queue in the `SharedTaskState` its
`ptr` argument points to, and each executor drains only its own queue.
Previously all executors of one `wit-bindgen` copy shared a static queue, so
a `block_on` call ran tasks that the enclosing task had spawned earlier in
the same poll.
@alexcrichton
alexcrichton added this pull request to the merge queue Nov 19, 2026
Merged via the queue into bytecodealliance:main with commit e3b53be Nov 19, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants