Skip to content

Commit

Permalink
rustrt: Don't conditionally init the at_exit QUEUE
Browse files Browse the repository at this point in the history
This initialization should happen unconditionally, but the rtassert! macro is
gated on the ENFORCE_SANITY define

Closes #16106
  • Loading branch information
alexcrichton committed Jul 31, 2014
1 parent 20658f7 commit ecac4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustrt/at_exit_imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit ecac4d2

Please sign in to comment.