add new debug log line on rb_ractor_terminate_all
to leave the trace.
This commit is contained in:
parent
06b68db7cf
commit
ffce3117b6
Notes:
git
2023-04-26 08:58:52 +00:00
2
ractor.c
2
ractor.c
@ -2335,6 +2335,8 @@ rb_ractor_terminate_all(void)
|
|||||||
rb_vm_t *vm = GET_VM();
|
rb_vm_t *vm = GET_VM();
|
||||||
rb_ractor_t *cr = vm->ractor.main_ractor;
|
rb_ractor_t *cr = vm->ractor.main_ractor;
|
||||||
|
|
||||||
|
RUBY_DEBUG_LOG("ractor.cnt:%d", (int)vm->ractor.cnt);
|
||||||
|
|
||||||
VM_ASSERT(cr == GET_RACTOR()); // only main-ractor's main-thread should kick it.
|
VM_ASSERT(cr == GET_RACTOR()); // only main-ractor's main-thread should kick it.
|
||||||
|
|
||||||
if (vm->ractor.cnt > 1) {
|
if (vm->ractor.cnt > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user