summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2024-11-05 17:19:27 +0900
committerYusuke Endoh <[email protected]>2024-11-05 17:48:01 +0900
commit2d2d363012f6806fe6ad3fd699837a47ba599b10 ()
tree345583ea911ade5ddcd6d7c89de7f3a621214f69 /vm_dump.c
parent348a53415339076afc4a02fcd09f3ae36e9c4c61 (diff)
Let vm_dump show whether the fiber scheduler is enabled or not
... just for the case.
Notes: Merged: https://.com/ruby/ruby/pull/12000
-rw-r--r--vm_dump.c4
1 files changed, 4 insertions, 0 deletions
@@ -9,6 +9,7 @@
**********************************************************************/
#include "ruby/internal/config.h"
#ifdef HAVE_UCONTEXT_H
# include <ucontext.h>
@@ -1140,6 +1141,9 @@ rb_vm_bugreport(const void *ctx, FILE *errout)
"---------------------------------------------------\n");
kprintf("Total ractor count: %u\n", vm->ractor.cnt);
kprintf("Ruby thread count for this ractor: %u\n", rb_ec_ractor_ptr(ec)->threads.cnt);
kputs("\n");
}