Let vm_dump show whether the fiber scheduler is enabled or not
... just for the case.
This commit is contained in:
parent
348a534153
commit
2d2d363012
Notes:
git
2024-11-05 08:48:20 +00:00
@ -9,6 +9,7 @@
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include "ruby/internal/config.h"
|
#include "ruby/internal/config.h"
|
||||||
|
#include "ruby/fiber/scheduler.h"
|
||||||
|
|
||||||
#ifdef HAVE_UCONTEXT_H
|
#ifdef HAVE_UCONTEXT_H
|
||||||
# include <ucontext.h>
|
# include <ucontext.h>
|
||||||
@ -1140,6 +1141,9 @@ rb_vm_bugreport(const void *ctx, FILE *errout)
|
|||||||
"---------------------------------------------------\n");
|
"---------------------------------------------------\n");
|
||||||
kprintf("Total ractor count: %u\n", vm->ractor.cnt);
|
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);
|
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");
|
kputs("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user