Skip to content

Commit

Permalink
i#6938 sched migrate: Fix input not unscheduled assert (#6989)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
derekbruening authored Sep 18, 2024
1 parent ef4d226 commit 0a7eafb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/drcachesim/scheduler/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2641,6 +2641,7 @@ scheduler_tmpl_t<RecordType, ReaderType>::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)
Expand Down

0 comments on commit 0a7eafb

Please sign in to comment.