-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent STM waking up threads blocked on threadDelay
#143
Conversation
Some good news: this fixes my direct "repro". Some bad news: I'm seeing a different test failure now, so I'll try to debug that promptly to see if it's my own mistake that is masking more issues like this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @amesgen, that's a clean fix.
This is actually half of the work 😁, would you like to do the IOSimPOR
part too?
This fix works for me! My new GSM tests are passing locally. My PR is unblocked (other than needing a CHaP release, etc---I've merely locally backported Esgen's patch to the last |
I'll cut a new |
The first argument of `unblockThreads`, `onlySTM`, indicates that only threads actually blocked on STM are woken up. This change correctly sets it to `True` when necessary. Co-authored-by: Armando Santos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @amesgen 🎉
Closes #142