mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
df4457e20b
`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.