Skip to content

Commit d12bf49

Browse files
committed
add support for global constructors (i.e. life before main)
1 parent aecc469 commit d12bf49

File tree

5 files changed

+262
-144
lines changed

5 files changed

+262
-144
lines changed

src/concurrency/thread.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,6 @@ trait EvalContextPrivExt<'tcx>: MiriInterpCxExt<'tcx> {
676676
#[inline]
677677
fn run_on_stack_empty(&mut self) -> InterpResult<'tcx, Poll<()>> {
678678
let this = self.eval_context_mut();
679-
// Inform GenMC that a thread has finished all user code. GenMC needs to know this for scheduling.
680-
if let Some(genmc_ctx) = this.machine.data_race.as_genmc_ref() {
681-
let thread_id = this.active_thread();
682-
genmc_ctx.handle_thread_stack_empty(thread_id);
683-
}
684679
let mut callback = this
685680
.active_thread_mut()
686681
.on_stack_empty

0 commit comments

Comments
 (0)