summaryrefslogtreecommitdiff
path: root/variable.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-11 16:37:20 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-12 06:19:18 +0900
commitd741c77b5fd976300815c1ea987e76e92b71122f (patch)
tree852e8cc6d6d66193cbb54c0ac9d2b6e7a1a239d6 /variable.h
parent31e8de2920935d500105949bda931f3ca22cdbff (diff)
fix ivar with shareable objects issue
Instance variables of sharable objects are accessible only from main ractor, so we need to check it correctly.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3887
Diffstat (limited to 'variable.h')
-rw-r--r--variable.h1
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 */