summaryrefslogtreecommitdiff
path: root/ractor.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-04-26 17:12:12 +0900
committerKoichi Sasada <ko1@atdot.net>2023-04-26 17:58:32 +0900
commitffce3117b6b615666cab8f92a7fc32ecefc0121c (patch)
treea8f1d49cdf2109443caa0806a78dffded7d65dca /ractor.c
parent06b68db7cfd194de2c7c0bd45e18692f6f8a7b87 (diff)
add new debug log line on `rb_ractor_terminate_all`
to leave the trace.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7763
Diffstat (limited to 'ractor.c')
-rw-r--r--ractor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ractor.c b/ractor.c
index 0dadd47cdd..044d376235 100644
--- a/ractor.c
+++ b/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) {