aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 745f08fb23..62a0a2a4cc 100644
--- a/eval.c
+++ b/eval.c
@@ -10030,6 +10030,9 @@ rb_gc_abort_threads(void)
{
rb_thread_t th;
+ if (!main_thread)
+ return;
+
FOREACH_THREAD_FROM(main_thread, th) {
if (FL_TEST(th->thread, FL_MARK)) continue;
if (th->status == THREAD_STOPPED) {