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

Make std::sync::Arc compatible with ThreadSanitizer #65097

Merged
merged 1 commit into from
Mar 21, 2020
Merged

Commits on Mar 19, 2020

  1. Make std::sync::Arc compatible with ThreadSanitizer

    The memory fences used previously in Arc implementation are not properly
    understood by ThreadSanitizer as synchronization primitives. This had
    unfortunate effect where running any non-trivial program compiled with
    `-Z sanitizer=thread` would result in numerous false positives.
    
    Replace acquire fences with acquire loads when using ThreadSanitizer to
    address the issue.
    tmiasko committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    fd0e15b View commit details
    Browse the repository at this point in the history