We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11191fc commit b5c2e83Copy full SHA for b5c2e83
library/std/src/sys/thread_local/guard/key.rs
@@ -27,7 +27,7 @@ pub fn enable() {
27
use crate::sys::thread_local::key::at_process_exit;
28
29
static REGISTERED: AtomicBool = AtomicBool::new(false);
30
- if !REGISTERED.swap(true, Ordering::AcqRel) {
+ if !REGISTERED.swap(true, Ordering::Relaxed) {
31
unsafe { at_process_exit(run_process) };
32
}
33
0 commit comments