summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 934b00ec80..2d6e5aeee6 100644
--- a/gc.c
+++ b/gc.c
@@ -255,7 +255,7 @@ rb_newobj()
alloc_objects++;
return obj;
}
- if (dont_gc) add_heap();
+ if (dont_gc || prohibit_interrupt) add_heap();
else gc_gc();
goto retry;