mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
b792258b32
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.