summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-03-09 14:59:00 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-03-10 13:13:34 -0500
commitd0b8bdb3927dd7bfa1ae9195fc254e48bc52fc9f (patch)
tree9ec83e306635a89e5b57a8f6e12815f541e5b42d /gc.c
parentac5f983f7d2695696693e88aa9c00b5cf2b46c37 (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.c7
1 files changed, 0 insertions, 7 deletions
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");