aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index f296c1fc4c..57e60b3ccd 100644
--- a/gc.c
+++ b/gc.c
@@ -3809,6 +3809,7 @@ rb_gc_force_recycle(VALUE p)
#if USE_RGENGC
CLEAR_IN_BITMAP(GET_HEAP_REMEMBERSET_BITS(p), p);
+ CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(p), p);
#endif
objspace->total_freed_object_num++;