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 ae7cff920d..9097225184 100644
--- a/gc.c
+++ b/gc.c
@@ -1236,7 +1236,7 @@ rb_gc()
/* mark protected global variables */
for (list = global_List; list; list = list->next) {
- rb_gc_mark(*list->varptr);
+ rb_gc_mark_maybe(*list->varptr);
}
rb_mark_end_proc();
rb_gc_mark_global_tbl();