Force reset running time in timer interrupt

Co-authored-by: Ivo Anjo <ivo.anjo@datadoghq.com>
Co-authored-by: Luke Gruber <luke.gru@gmail.com>
This commit is contained in:
John Hawthorn 2024-11-14 15:21:38 -08:00
parent 55c9c75b47
commit d845da05e8
Notes: git 2025-05-15 21:44:39 +00:00
3 changed files with 9 additions and 9 deletions

View file

@ -859,7 +859,7 @@ thread_sched_wait_running_turn(struct rb_thread_sched *sched, rb_thread_t *th, b
RUBY_DEBUG_LOG("(nt) wakeup %s", sched->running == th ? "success" : "failed");
if (th == sched->running) {
rb_ractor_thread_switch(th->ractor, th);
rb_ractor_thread_switch(th->ractor, th, false);
}
}
else {