diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-05 05:38:50 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-07 08:28:36 +0900 |
commit | 23f9447429a1bbb262aa19afd9a2a1ad0eba8ca6 (patch) | |
tree | 08b67c1fae0834536db70866de7ba5ab909e87e0 /debug.c | |
parent | 307732ccee7f9f28f8422bab2f839da021d8cdec (diff) |
show ractor info on non-single ractor mode
Without this patch, Ruby doesn't show ractor's information when
there is only 1 ractor. However it is hard to read the log when
some ractors are created and terminated. This patch makes to keep
showing ractor's information on multi-ractor mode.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3842
Diffstat (limited to 'debug.c')
-rw-r--r-- | debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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", |