Skip to content

Commit

Permalink
Disable unlimited-ticks mode when chaos mode is enabled.
Browse files Browse the repository at this point in the history
We depend on regular wakeups to perform chaos-mode scheduling.
  • Loading branch information
rocallahan committed Sep 21, 2024
1 parent 2f319ca commit 08357f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scheduler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ static RecordTask* find_waited_task(RecordSession& session, pid_t tid, WaitStatu
}

bool Scheduler::may_use_unlimited_ticks() {
return ntasks_stopped == 1;
return ntasks_stopped == 1 && !enable_chaos;
}

void Scheduler::started_task(RecordTask* t) {
Expand Down

0 comments on commit 08357f6

Please sign in to comment.