]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #96619 - akiekintveld:same_mutex_check_relaxed_ordering, r=m-ou-se
authorYuki Okushi <jtitor@2k36.org>
Thu, 5 May 2022 01:20:34 +0000 (10:20 +0900)
committerGitHub <noreply@github.com>
Thu, 5 May 2022 01:20:34 +0000 (10:20 +0900)
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.


Trivial merge