mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 03:24:06 +03:00
fd0e15bbcd
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.