diff options
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,6 +9,7 @@ **********************************************************************/ #include "ruby/internal/config.h" +#include "ruby/fiber/scheduler.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); + if (rb_fiber_scheduler_current() != Qnil) { + kprintf("Note that the Fiber scheduler is enabled\n"); + } kputs("\n"); } |