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 a2c74b8 commit 5e4cc6fCopy full SHA for 5e4cc6f
library/panic_unwind/src/emcc.rs
@@ -84,7 +84,7 @@ pub unsafe fn cleanup(ptr: *mut u8) -> Box<dyn Any + Send> {
84
super::__rust_foreign_exception();
85
}
86
87
- let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::SeqCst);
+ let was_caught = (*adjusted_ptr).caught.swap(true, Ordering::Relaxed);
88
if was_caught {
89
// Since cleanup() isn't allowed to panic, we just abort instead.
90
intrinsics::abort();
0 commit comments