]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #79039 - thomcc:weakly-relaxing, r=Amanieu
authorMara Bos <m-ou.se@m-ou.se>
Wed, 18 Nov 2020 14:46:27 +0000 (15:46 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 14:46:27 +0000 (15:46 +0100)
Tighten the bounds on atomic Ordering in std::sys::unix::weak::Weak

This moves reading this from multiple SeqCst reads to Relaxed read + Acquire fence if we are actually going to use the data.

Would love to avoid the Acquire fence, but doing so would need Ordering::Consume, which neither Rust, nor LLVM supports (a shame, since this fence is hardly free on ARM, which is what I was hoping to improve).

r? ``@Amanieu`` (Sorry for always picking you, but I know a lot of people wouldn't feel comfortable reviewing atomic ordering changes)

1  2 
library/std/src/sys/unix/weak.rs

Simple merge