From fad97f1f96caf11005a5858a29d32c66203913e8 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Wed, 14 Oct 2020 10:43:13 +0900 Subject: 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. --- variable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variable.h') 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 */ -- cgit v1.2.3