Skip to content

Commit 603ec0b

Browse files
author
Vytautas Astrauskas
committed
Fix a regression in Windows dtors.
1 parent 0e052ab commit 603ec0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/tls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
342342
let this = self.eval_context_mut();
343343
let active_thread = this.get_active_thread()?;
344344

345-
if this.machine.tls.set_dtors_running_for_thread(active_thread) {
345+
if !this.machine.tls.set_dtors_running_for_thread(active_thread) {
346346
// This is the first time we got asked to schedule a destructor. The
347347
// Windows schedule destructor function must be called exactly once,
348348
// this is why it is in this block.

0 commit comments

Comments
 (0)