From 0a7eafb60304cdce71fc7dba288a1ce0a8513773 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Wed, 18 Sep 2024 16:54:32 -0400 Subject: [PATCH] i#6938 sched migrate: Fix input not unscheduled assert (#6989) Adds a missing clear of an input being "unscheduled" when it times out but is not selected (due to the migration threshold). This fixes an assert a few lines above this fix the next time this input is selected in pop_from_ready_queue_hold_locks(). Tested on a particular input which triggers the assert. Issue: #6938 --- clients/drcachesim/scheduler/scheduler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/drcachesim/scheduler/scheduler.cpp b/clients/drcachesim/scheduler/scheduler.cpp index 95afee8fe4d..f4ac0c63701 100644 --- a/clients/drcachesim/scheduler/scheduler.cpp +++ b/clients/drcachesim/scheduler/scheduler.cpp @@ -2641,6 +2641,7 @@ scheduler_tmpl_t::pop_from_ready_queue_hold_locks( } else { // This input is no longer blocked. res->blocked_time = 0; + res->unscheduled = false; // We've found a candidate. One final check if this is a migration. bool found_candidate = false; if (from_output == for_output)