diff options
author | Kunshan Wang <wks1986@gmail.com> | 2022-10-27 17:47:47 +0800 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-01-31 09:24:26 -0500 |
commit | de724487f0820391e005f11e67ea132cffe3c9d3 (patch) | |
tree | 99d1d6ba3cf30c49f93af16744ac2bd1fdbb8f39 /internal | |
parent | d92289f6330c57b0fe970a654dbf33314bfd6203 (diff) | |
download | ruby-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.h | 2 |
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); |