summaryrefslogtreecommitdiff
path: root/lib/pp.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2025-08-19 22:22:51 -0700
committerJohn Hawthorn <john@hawthorn.email>2025-08-21 11:37:07 -0700
commit7ac16eff311f9bc762586bda9540d82e8eb7f135 (patch)
treee29bd2d64920e902d83789cf8cbcd4d42fe26fb2 /lib/pp.rb
parentacb29f7fa1497463ed3bdd65549ef20b61beda64 (diff)
Adjust snt < max_cpu calculationHEADmaster
[Bug #20146] Previously we dealt with the main Ractor not being enabled for M:N by incrementing snt_cnt++. This worked for comparing against ractor count, but meant that we always had one less SNT than was specified by RUBY_MAX_CPU. This was notably a problem for RUBY_MAX_CPU=1, which would cause Ractors to hang. This commit instead of adjusting snt, adjusts a "schedulable_ractor_cnt". This way snt_cnt will actually reach RUBY_MAX_CPU.
Diffstat (limited to 'lib/pp.rb')
0 files changed, 0 insertions, 0 deletions