summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorKunshan Wang <wks1986@gmail.com>2022-10-27 17:47:47 +0800
committerPeter Zhu <peter@peterzhu.ca>2023-01-31 09:24:26 -0500
commitde724487f0820391e005f11e67ea132cffe3c9d3 (patch)
tree99d1d6ba3cf30c49f93af16744ac2bd1fdbb8f39 /internal
parentd92289f6330c57b0fe970a654dbf33314bfd6203 (diff)
downloadruby-de724487f0820391e005f11e67ea132cffe3c9d3.tar.gz
Copying GC support for EXIVAR
Instance variables held in gen_ivtbl are marked with rb_gc_mark. It prevents the referenced objects from moving, which is bad for copying garbage collectors. This commit allows those instance variables to be updated during gc_update_object_references.
Diffstat (limited to 'internal')
-rw-r--r--internal/variable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/variable.h b/internal/variable.h
index 3933279633..88fa28e1ba 100644
--- a/internal/variable.h
+++ b/internal/variable.h
@@ -42,7 +42,7 @@ int rb_obj_evacuate_ivs_to_hash_table(ID key, VALUE val, st_data_t arg);
RUBY_SYMBOL_EXPORT_BEGIN
/* variable.c (export) */
-void rb_mark_generic_ivar(VALUE);
+void rb_mark_and_update_generic_ivar(VALUE);
void rb_mv_generic_ivar(VALUE src, VALUE dst);
VALUE rb_const_missing(VALUE klass, VALUE name);
int rb_class_ivar_set(VALUE klass, ID vid, VALUE value);