1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix ivar with shareable objects issue

Instance variables of sharable objects are accessible only from
main ractor, so we need to check it correctly.
This commit is contained in:
Koichi Sasada 2020-12-11 16:37:20 +09:00
parent 31e8de2920
commit d741c77b5f
Notes: git 2020-12-12 06:19:44 +09:00
4 changed files with 105 additions and 42 deletions

View file

@ -17,5 +17,6 @@ struct gen_ivtbl {
};
int rb_ivar_generic_ivtbl_lookup(VALUE obj, struct gen_ivtbl **);
VALUE rb_ivar_generic_lookup_with_index(VALUE obj, ID id, uint32_t index);
#endif /* RUBY_TOPLEVEL_VARIABLE_H */