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

Tsan false positive with Arc #10

Open
vors opened this issue Jun 25, 2018 · 1 comment
Open

Tsan false positive with Arc #10

vors opened this issue Jun 25, 2018 · 1 comment

Comments

@vors
Copy link

vors commented Jun 25, 2018

Hello!

I tried a simple example with Arc with calling drop 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

@Kestrer
Copy link

Kestrer commented Apr 6, 2021

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants