Skip to content

Commit 5e4cc6f

Browse files
committed
SeqCst->Relaxed in panic_unwind/emcc.
SeqCst is unnecessary here.
1 parent a2c74b8 commit 5e4cc6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/panic_unwind/src/emcc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub unsafe fn cleanup(ptr: *mut u8) -> Box<dyn Any + Send> {
8484
super::__rust_foreign_exception();
8585
}
8686

87-
let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::SeqCst);
87+
let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::Relaxed);
8888
if was_caught {
8989
// Since cleanup() isn't allowed to panic, we just abort instead.
9090
intrinsics::abort();

0 commit comments

Comments
 (0)