summaryrefslogtreecommitdiff
path: root/variable.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-10-14 10:43:13 +0900
committerKoichi Sasada <ko1@atdot.net>2020-10-14 16:36:55 +0900
commitfad97f1f96caf11005a5858a29d32c66203913e8 (patch)
tree156a20da88b4e1efae3c9f749a1ed0dd2181da86 /variable.h
parentae693fff748c68ca2500bbc2c0a8802d50f269dc (diff)
sync generic_ivtbl
generic_ivtbl is a process global table to maintain instance variables for non T_OBJECT/T_CLASS/... objects. So we need to protect them for multi-Ractor exection. Hint: we can make them Ractor local for unshareable objects, but now it is premature optimization.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3655
Diffstat (limited to 'variable.h')
-rw-r--r--variable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.h b/variable.h
index 2f010b6508..4d71f87bc5 100644
--- a/variable.h
+++ b/variable.h
@@ -16,6 +16,6 @@ struct gen_ivtbl {
VALUE ivptr[FLEX_ARY_LEN];
};
-struct st_table *rb_ivar_generic_ivtbl(VALUE obj);
+int rb_ivar_generic_ivtbl_lookup(VALUE obj, struct gen_ivtbl **);
#endif /* RUBY_TOPLEVEL_VARIABLE_H */