diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2023-07-19 21:59:17 +0100 |
---|---|---|
committer | Matt Valentine-House <matt@eightbitraptor.com> | 2023-07-20 13:38:58 +0100 |
commit | dd8372b3f3290572a8b26eaa272f9a7131d164ca (patch) | |
tree | df50777c1fe547ff7fb7df0909e9bb425fcfda24 /gc.c | |
parent | 62cb739ba5d36178b73ec718707afc9ed07f14f1 (diff) | |
download | ruby-dd8372b3f3290572a8b26eaa272f9a7131d164ca.tar.gz |
cvc table entries can move
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10271,12 +10271,13 @@ update_cvc_tbl(rb_objspace_t *objspace, VALUE klass) static enum rb_id_table_iterator_result mark_cvc_tbl_i(VALUE cvc_entry, void *data) { + rb_objspace_t *objspace = (rb_objspace_t *)data; struct rb_cvar_class_tbl_entry *entry; entry = (struct rb_cvar_class_tbl_entry *)cvc_entry; RUBY_ASSERT(entry->cref == 0 || (BUILTIN_TYPE((VALUE)entry->cref) == T_IMEMO && IMEMO_TYPE_P(entry->cref, imemo_cref))); - rb_gc_mark((VALUE) entry->cref); + gc_mark(objspace, (VALUE) entry->cref); return ID_TABLE_CONTINUE; } |