Skip to content

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

Merged
hawkw merged 6 commits intomainfrom
eliza/leak-check
Jan 15, 2022
Merged

fix(mpsc): ensure un-received messages are dropped#29
hawkw merged 6 commits intomainfrom
eliza/leak-check

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