mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
SeqCst->Relaxed in panic_unwind/emcc.
SeqCst is unnecessary here.
This commit is contained in:
parent
a2c74b8445
commit
5e4cc6f694
@ -84,7 +84,7 @@ pub unsafe fn cleanup(ptr: *mut u8) -> Box<dyn Any + Send> {
|
||||
super::__rust_foreign_exception();
|
||||
}
|
||||
|
||||
let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::SeqCst);
|
||||
let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::Relaxed);
|
||||
if was_caught {
|
||||
// Since cleanup() isn't allowed to panic, we just abort instead.
|
||||
intrinsics::abort();
|
||||
|
Loading…
Reference in New Issue
Block a user