summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index deec382fa4..5548a00934 100644
--- a/debug.c
+++ b/debug.c
@@ -424,7 +424,7 @@ ruby_debug_log(const char *file, int line, const char *func_name, const char *fm
}
// ractor information
- if (GET_VM()->ractor.cnt > 1) {
+ if (ruby_single_main_ractor == NULL) {
rb_ractor_t *cr = GET_RACTOR();
if (r && len < MAX_DEBUG_LOG_MESSAGE_LEN) {
r = snprintf(buff + len, MAX_DEBUG_LOG_MESSAGE_LEN - len, "\tr:#%u/%u",