summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2021-11-05 09:51:53 -0400
committerPeter Zhu <peter@peterzhu.ca>2021-11-08 14:05:54 -0500
commitaeae6e2842e1702dfb89b8ae69b48c4f5f64c662 (patch)
tree33a7c7e23bf109123a77c7eb644e66e9bd44d75d /hash.c
parentaa5bccfc65cf47a10d72cefa4bc2ee097f135b4c (diff)
[Feature #18290] Remove all usages of rb_gc_force_recycle
This commit removes usages of rb_gc_force_recycle since it is a burden to maintain and makes changes to the GC difficult.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4363
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index d546a2c73a..aee671da34 100644
--- a/hash.c
+++ b/hash.c
@@ -1267,7 +1267,6 @@ rb_hash_transient_heap_evacuate(VALUE hash, int promote)
ar_table *old_tab = RHASH_AR_TABLE(hash);
if (UNLIKELY(old_tab == NULL)) {
- rb_gc_force_recycle(hash);
return;
}
HASH_ASSERT(old_tab != NULL);
@@ -4397,7 +4396,6 @@ rb_hash_compare_by_id(VALUE hash)
st_free_table(RHASH_ST_TABLE(hash));
RHASH_ST_TABLE_SET(hash, identtable);
RHASH_ST_CLEAR(tmp);
- rb_gc_force_recycle(tmp);
return hash;
}