Actions
Bug #15315
openec_switch can still lose interrupts
Description
ec_switch and thread switching may still lose interrupts
trap interrupt is OK because of r64062
Not OK:
-
postponed job interrupt from MJIT worker
This is trickiest to solve because it also affects thread switching,
not just EC switching -
pending interrupt is not safe but fixing ec_switch is sufficient because
rb_threadptr_interrupt only targets threads, not EC. -
timer interrupt is not critical because another interrupt will fire in 100ms
Solutions:
moving interrupt_flag back to rb_thread_t will solve 2 and 3
- will remain dangerous, we need to add extra checks at thread switching
because MJIT worker may get stuck if target thread stalls or dies.
Files
Updated by k0kubun (Takashi Kokubun) about 6 years ago
- will remain dangerous
Is this about Bug #15316?
Updated by normalperson (Eric Wong) about 6 years ago
takashikkbn@gmail.com wrote:
- will remain dangerous
Is this about Bug #15316?
Partially, yes (sorry, just (mostly) wrapped up Thread::Light
for review on Linux and unlikely to be online much due to
family stuff.
Updated by hsbt (Hiroshi SHIBATA) 8 months ago
- Status changed from Open to Assigned
Actions
Like0
Like0Like0Like0Like0