diff options
author | Peter Zhu <[email protected]> | 2023-03-09 14:59:00 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-03-10 13:13:34 -0500 |
commit | d0b8bdb3927dd7bfa1ae9195fc254e48bc52fc9f (patch) | |
tree | 9ec83e306635a89e5b57a8f6e12815f541e5b42d /gc.c | |
parent | ac5f983f7d2695696693e88aa9c00b5cf2b46c37 (diff) |
Remove duplicate code in gc_marks_finish
There is an identical block a few lines down that does the exact same
thing.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7488
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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"); |