-
Notifications
You must be signed in to change notification settings - Fork 13
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
Tsan false positive with Arc #10
Comments
This is fixed now in Rust itself. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
I tried a simple example with
Arc
with callingdrop
from 2 different threads and tsan reports a race on it https://gist.github.com/vors/83d78aa5e4b0cc0f730f54d99eafd692 .Is it because it ignores the
atomic::fence
or for some other reason?The implementation is pretty much rewrite in rust of this boost example: https://www.boost.org/doc/libs/1_55_0/doc/html/atomic/usage_examples.html#boost_atomic.usage_examples.example_reference_counters
The text was updated successfully, but these errors were encountered: