diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-10-14 10:43:13 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-10-14 16:36:55 +0900 |
commit | fad97f1f96caf11005a5858a29d32c66203913e8 (patch) | |
tree | 156a20da88b4e1efae3c9f749a1ed0dd2181da86 /variable.h | |
parent | ae693fff748c68ca2500bbc2c0a8802d50f269dc (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.h | 2 |
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 */ |