Remove duplicate code
These functions are the same, so remove one. Co-authored-by: John Hawthorn <john@hawthorn.email>
This commit is contained in:
parent
e58814d150
commit
d0d743ad45
6
gc.c
6
gc.c
@ -7995,12 +7995,6 @@ gc_ref_update_hash(rb_objspace_t * objspace, VALUE v)
|
|||||||
rb_hash_stlike_foreach_with_replace(v, hash_foreach_replace, hash_replace_ref, (st_data_t)objspace);
|
rb_hash_stlike_foreach_with_replace(v, hash_foreach_replace, hash_replace_ref, (st_data_t)objspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rb_update_st_references(struct st_table *ht)
|
|
||||||
{
|
|
||||||
rb_objspace_t *objspace = &rb_objspace;
|
|
||||||
gc_update_table_refs(objspace, ht);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gc_ref_update_method_entry(rb_objspace_t *objspace, rb_method_entry_t *me)
|
gc_ref_update_method_entry(rb_objspace_t *objspace, rb_method_entry_t *me)
|
||||||
{
|
{
|
||||||
|
@ -532,10 +532,9 @@ PUREFUNC(int rb_during_gc(void));
|
|||||||
void rb_gc_mark_locations(const VALUE*, const VALUE*);
|
void rb_gc_mark_locations(const VALUE*, const VALUE*);
|
||||||
void rb_mark_tbl(struct st_table*);
|
void rb_mark_tbl(struct st_table*);
|
||||||
void rb_mark_tbl_no_pin(struct st_table*);
|
void rb_mark_tbl_no_pin(struct st_table*);
|
||||||
void rb_gc_update_tbl_refs(st_table *ptr);
|
|
||||||
void rb_mark_set(struct st_table*);
|
void rb_mark_set(struct st_table*);
|
||||||
void rb_mark_hash(struct st_table*);
|
void rb_mark_hash(struct st_table*);
|
||||||
void rb_update_st_references(struct st_table *ht);
|
void rb_gc_update_tbl_refs(st_table *ptr);
|
||||||
void rb_gc_mark_maybe(VALUE);
|
void rb_gc_mark_maybe(VALUE);
|
||||||
void rb_gc_mark(VALUE);
|
void rb_gc_mark(VALUE);
|
||||||
void rb_gc_mark_movable(VALUE);
|
void rb_gc_mark_movable(VALUE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user