mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
1 changed files with 2 additions and 0 deletions
2
ractor.c
2
ractor.c
|
@ -2335,6 +2335,8 @@ rb_ractor_terminate_all(void)
|
|||
rb_vm_t *vm = GET_VM();
|
||||
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.
|
||||
|
||||
if (vm->ractor.cnt > 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue