mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
55c9c75b47
commit
d845da05e8
Notes:
git
2025-05-15 21:44:39 +00:00
3 changed files with 9 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue