From d0b8bdb3927dd7bfa1ae9195fc254e48bc52fc9f Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 9 Mar 2023 14:59:00 -0500 Subject: Remove duplicate code in gc_marks_finish There is an identical block a few lines down that does the exact same thing. --- gc.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 94ca96fb26..d81b1db8c8 100644 --- a/gc.c +++ b/gc.c @@ -8408,13 +8408,6 @@ gc_marks_finish(rb_objspace_t *objspace) gc_verify_internal_consistency(objspace); #endif - if (is_full_marking(objspace)) { - /* See the comment about RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR */ - const double r = gc_params.oldobject_limit_factor; - objspace->rgengc.uncollectible_wb_unprotected_objects_limit = (size_t)(objspace->rgengc.uncollectible_wb_unprotected_objects * r); - objspace->rgengc.old_objects_limit = (size_t)(objspace->rgengc.old_objects * r); - } - #if RGENGC_CHECK_MODE >= 4 during_gc = FALSE; gc_marks_check(objspace, gc_check_after_marks_i, "after_marks"); -- cgit v1.2.3