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

sync: fix fuzz_oneshot test by using instrumented loom::sync::Arc #1464

Merged
merged 1 commit into from
Aug 18, 2019

Conversation

phlip9
Copy link
Contributor

@phlip9 phlip9 commented Aug 18, 2019

Since tokio_sync::oneshot makes a CausalCell::with_mut() mutable
access in the Inner::drop(), we must use the instrumented
loom::sync::Arc.

To be clear, there is no issue with the underlying tokio_sync::oneshot.
This change just fixes the test so that it no longer reports a false negative
test output.

Uncovered by tokio-rs/loom#42

@phlip9 phlip9 changed the title Fix fuzz_oneshot test by using instrumented loom::sync::Arc sync: fix fuzz_oneshot test by using instrumented loom::sync::Arc Aug 18, 2019
Since `tokio_sync::oneshot` makes a `CausalCell::with_mut()` mutable
access in the `Inner::drop()`, we must use the instrumented
`loom::sync::Arc`.

Uncovered by tokio-rs/loom#42
Copy link
Member

@carllerche carllerche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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