From 6b1d2de6cc2e85fda7885fe77dbd7c99c4eb1ef2 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 10 Dec 2020 14:40:22 -0800 Subject: [PATCH] Unfortunately getinstancevariable was still not leaf https://github.com/ruby/ruby/runs/1533401436 --- insns.def | 2 ++ 1 file changed, 2 insertions(+) diff --git a/insns.def b/insns.def index 2bdb2d5d7a..f912b51c87 100644 --- a/insns.def +++ b/insns.def @@ -210,6 +210,8 @@ getinstancevariable (ID id, IVC ic) () (VALUE val) +/* Ractor crashes when it accesses class/module-level instances variables. */ +// attr bool leaf = false; /* has IVAR_ACCESSOR_SHOULD_BE_MAIN_RACTOR() */ { val = vm_getinstancevariable(GET_ISEQ(), GET_SELF(), id, ic); }