Skip to content

Conversation

@RalfJung
Copy link
Member

This fixes a bug in the epoll wakeup logic, where if we had 2 events to deliver, and 2 threads queued that each wanted to take 1 event, we'd only wake up one of them.

Also add some sanity-check assertions that will ensure we do not wake up too many or too few threads.

And finally, fix the diagnostic printing for deadlock errors: don't try to show the stacktrace of finished treads. This is independent but would conflict so I am not making it a separate PR.

@rustbot
Copy link
Collaborator

rustbot commented Nov 15, 2025

Thank you for contributing to Miri! A reviewer will take a look at your PR, typically within a week or two.
Please remember to not force-push to the PR branch except when you need to rebase due to a conflict or when the reviewer asks you for it.

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Nov 15, 2025
@RalfJung RalfJung enabled auto-merge November 15, 2025 11:40
@RalfJung RalfJung added this pull request to the merge queue Nov 15, 2025
Merged via the queue into rust-lang:master with commit a7e61a3 Nov 15, 2025
13 checks passed
@RalfJung RalfJung deleted the epoll-wakeups branch November 15, 2025 12:30
@rustbot rustbot removed the S-waiting-on-review Status: Waiting for a review to complete label Nov 15, 2025
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