mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-18 10:07:45 +00:00
Relax memory ordering used in SameMutexCheck `SameMutexCheck` only requires atomicity for `self.addr`, but does not need ordering of other memory accesses in either the success or failure case. Using `Relaxed`, the code still correctly handles the case when two threads race to store an address.