rustrt: Don't conditionally init the at_exit QUEUE
This initialization should happen unconditionally, but the rtassert! macro is gated on the ENFORCE_SANITY define Closes #16106
This commit is contained in:
parent
20658f7ec5
commit
ecac4d2e6c
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ pub fn init() {
|
|||
let state: Box<Queue> = box Exclusive::new(Vec::new());
|
||||
unsafe {
|
||||
rtassert!(!RUNNING.load(atomics::SeqCst));
|
||||
rtassert!(QUEUE.swap(mem::transmute(state), atomics::SeqCst) == 0);
|
||||
assert!(QUEUE.swap(mem::transmute(state), atomics::SeqCst) == 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue