File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ use crate::cell::UnsafeCell;
99
99
use crate :: env;
100
100
use crate :: ffi:: c_void;
101
101
use crate :: fmt;
102
- use crate :: sync:: atomic:: { AtomicUsize , Ordering :: SeqCst } ;
102
+ use crate :: sync:: atomic:: { AtomicUsize , Ordering :: Relaxed } ;
103
103
use crate :: sync:: Once ;
104
104
use crate :: sys_common:: backtrace:: { lock, output_filename} ;
105
105
use crate :: vec:: Vec ;
@@ -256,7 +256,7 @@ impl Backtrace {
256
256
// backtrace captures speedy, because otherwise reading environment
257
257
// variables every time can be somewhat slow.
258
258
static ENABLED : AtomicUsize = AtomicUsize :: new ( 0 ) ;
259
- match ENABLED . load ( SeqCst ) {
259
+ match ENABLED . load ( Relaxed ) {
260
260
0 => { }
261
261
1 => return false ,
262
262
_ => return true ,
@@ -268,7 +268,7 @@ impl Backtrace {
268
268
Err ( _) => false ,
269
269
} ,
270
270
} ;
271
- ENABLED . store ( enabled as usize + 1 , SeqCst ) ;
271
+ ENABLED . store ( enabled as usize + 1 , Relaxed ) ;
272
272
enabled
273
273
}
274
274
You can’t perform that action at this time.
0 commit comments