Skip to content
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

fix(mpsc): ensure un-received messages are dropped #29

Merged
merged 6 commits into from
Jan 15, 2022
Merged

Conversation

hawkw
Copy link
Owner

@hawkw hawkw commented Jan 15, 2022

This also adds loom leak checking tests.

I also made WaitQueue::close into an RMW op to work around loom
not modeling SeqCst properly.

hawkw added 6 commits January 6, 2022 10:31
I *think* this only fails loom because it doesn't fully model SeqCst,
correctly...but making this a swap rather than a store ensures it's an
RMW op, which appears to fix the loom test where the close was missed by
a sender...

Signed-off-by: Eliza Weisman <[email protected]>
Signed-off-by: Eliza Weisman <[email protected]>
Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw merged commit c444e50 into main Jan 15, 2022
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.

1 participant