You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: the kill is deferred until the :never block ends, as with untimed Queue#pop. Actual: with a timeout, the kill ends the thread inside the masked block. t.raise("boom") behaves the same way. Related: masked sleep 1 defers the kill but returns early (after 0.3s, return value 0); CRuby sleeps the full second.
Impact: code that uses handle_interrupt(Object => :never) to protect cleanup (for example, releasing a lock or draining a queue during shutdown) is interrupted part-way on JRuby.
@headius have changed the milestone to 10.0.9.0 on both #10057 and #10064 not sure if 10.1.4.0 was intentional, it's still marked so here... maybe it's due the need to push out 10.1 release sooner?
The first fix was originally targeted at master so I think I got it in my head that both of them were going to master. Marking them for 10.0.9.0 is correct. This issue should probably also be changed and a duplicate issue created for 10.1 milestone.
Activity
Only the running fiber takes a thread's interrupts
Keep queue waits going when a masked interrupt wakes them
sampokuokkanen commentedon Nov 13, 2026
Now on jruby-10.0 branch:
Sleep still left to fix.
Keep sleeping when a masked interrupt wakes Kernel#sleep
headius commentedon Nov 17, 2026
Fixed by #10057 and #10064.
kares commentedon Nov 18, 2026
@headius have changed the milestone to
10.0.9.0on both #10057 and #10064 not sure if10.1.4.0was intentional, it's still marked so here... maybe it's due the need to push out 10.1 release sooner?headius commentedon Nov 18, 2026
The first fix was originally targeted at master so I think I got it in my head that both of them were going to master. Marking them for 10.0.9.0 is correct. This issue should probably also be changed and a duplicate issue created for 10.1 milestone.