show debug log for ractor_terminal_interrupt_all
This commit is contained in:
parent
30b43f4f1a
commit
f5b824c745
Notes:
git
2023-03-30 05:56:59 +00:00
5
ractor.c
5
ractor.c
@ -2322,6 +2322,7 @@ ractor_terminal_interrupt_all(rb_vm_t *vm)
|
||||
rb_ractor_t *r = 0;
|
||||
ccan_list_for_each(&vm->ractor.set, r, vmlr_node) {
|
||||
if (r != vm->ractor.main_ractor) {
|
||||
RUBY_DEBUG_LOG("r:%d", rb_ractor_id(r));
|
||||
rb_ractor_terminate_interrupt_main_thread(r);
|
||||
}
|
||||
}
|
||||
@ -2338,7 +2339,9 @@ rb_ractor_terminate_all(void)
|
||||
|
||||
if (vm->ractor.cnt > 1) {
|
||||
RB_VM_LOCK();
|
||||
ractor_terminal_interrupt_all(vm); // kill all ractors
|
||||
{
|
||||
ractor_terminal_interrupt_all(vm); // kill all ractors
|
||||
}
|
||||
RB_VM_UNLOCK();
|
||||
}
|
||||
rb_thread_terminate_all(GET_THREAD()); // kill other threads in main-ractor and wait
|
||||
|
Loading…
x
Reference in New Issue
Block a user