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 1b1bf24 commit 3cba120Copy full SHA for 3cba120
library/std/src/panicking.rs
@@ -259,7 +259,7 @@ pub mod panic_count {
259
260
pub fn increase() -> (bool, usize) {
261
(
262
- GLOBAL_PANIC_COUNT.fetch_add(1, Ordering::Acquire) & ALWAYS_ABORT_FLAG != 0,
+ GLOBAL_PANIC_COUNT.fetch_add(1, Ordering::Relaxed) & ALWAYS_ABORT_FLAG != 0,
263
LOCAL_PANIC_COUNT.with(|c| {
264
let next = c.get() + 1;
265
c.set(next);
@@ -278,7 +278,7 @@ pub mod panic_count {
278
}
279
280
pub fn set_always_abort() {
281
- GLOBAL_PANIC_COUNT.fetch_or(ALWAYS_ABORT_FLAG, Ordering::Release);
+ GLOBAL_PANIC_COUNT.fetch_or(ALWAYS_ABORT_FLAG, Ordering::Relaxed);
282
283
284
// Disregards ALWAYS_ABORT_FLAG
0 commit comments