Skip to content

Commit 312c4ec

Browse files
committed
Also output GC thread backtrace in rb_mmtk_gc_thread_bug
1 parent e03fb0f commit 312c4ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gc/mmtk/mmtk.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ rb_mmtk_gc_thread_bug(const char *msg, ...)
446446
vsnprintf(objspace->crash_context.crash_msg, sizeof(objspace->crash_context.crash_msg), msg, args);
447447
va_end(args);
448448

449+
fprintf(stderr, "-- GC thread backtrace "
450+
"-------------------------------------------\n");
451+
rb_gc_print_backtrace();
452+
fprintf(stderr, "\n");
453+
449454
rb_mmtk_resume_mutators();
450455

451456
sleep(5);

0 commit comments

Comments
 (0)