summaryrefslogtreecommitdiff
path: root/enc/depend
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2026-06-12 13:39:27 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2026-06-16 11:49:31 +0900
commit25c1df0a95847695c42a7a3c970afa2387fe2d89 (patch)
tree771c968f4dee17aee97be34e9ca95607fc3cae66 /enc/depend
parent2093738aad2f082dd68f8a8a6c3edb11c33ac9bd (diff)
Fix stale runnable_hot_th hint causing assertion failure with MN threadsHEADmaster
The hot thread cannot steal back control when sched->running is an MN thread, and goes to sleep with sched->runnable_hot_th still pointing to itself, firing VM_ASSERT(sched->runnable_hot_th != th) at the next wakeup. Drop the hint before sleeping since the thread is no longer spinning. On a VM_CHECK_MODE build with RUBY_MN_THREADS=1: Thread.new { loop {} } 100.times { File.read(IO::NULL) } Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'enc/depend')
0 files changed, 0 insertions, 0 deletions