diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-11 16:37:20 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-12 06:19:18 +0900 |
commit | d741c77b5fd976300815c1ea987e76e92b71122f (patch) | |
tree | 852e8cc6d6d66193cbb54c0ac9d2b6e7a1a239d6 /variable.h | |
parent | 31e8de2920935d500105949bda931f3ca22cdbff (diff) | |
download | ruby-d741c77b5fd976300815c1ea987e76e92b71122f.tar.gz |
fix ivar with shareable objects issue
Instance variables of sharable objects are accessible only from
main ractor, so we need to check it correctly.
Diffstat (limited to 'variable.h')
-rw-r--r-- | variable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/variable.h b/variable.h index 4d71f87bc5..bfe1be2d47 100644 --- a/variable.h +++ b/variable.h @@ -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 */ |