aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2023-07-19 21:59:17 +0100
committerMatt Valentine-House <matt@eightbitraptor.com>2023-07-20 13:38:58 +0100
commitdd8372b3f3290572a8b26eaa272f9a7131d164ca (patch)
treedf50777c1fe547ff7fb7df0909e9bb425fcfda24 /gc.c
parent62cb739ba5d36178b73ec718707afc9ed07f14f1 (diff)
downloadruby-dd8372b3f3290572a8b26eaa272f9a7131d164ca.tar.gz
cvc table entries can move
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index d96124003f..3134c5a8cd 100644
--- a/gc.c
+++ b/gc.c
@@ -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;
}