summaryrefslogtreecommitdiff
path: root/bootstraptest/test_yjit.rb
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-10-22 17:24:34 +0900
committerKoichi Sasada <ko1@atdot.net>2021-10-23 01:32:55 +0900
commitacb23454e57e1bbe828e7f3114430cab2d5db44c (patch)
treedc80f3a0f23c7e82ca595785320e6c8a0bd664b0 /bootstraptest/test_yjit.rb
parent6b9285e8d45e88c5b014b8428520ffa2401789ad (diff)
allow to access ivars of classes/modules
if an ivar of a class/module refer to a shareable object, this ivar can be read from non-main Ractors.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5006
Diffstat (limited to 'bootstraptest/test_yjit.rb')
-rw-r--r--bootstraptest/test_yjit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index 20db784a39..183b19c3eb 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -2023,14 +2023,14 @@ assert_normal_exit %q{
foo([1]) rescue nil
}
-# test ractor exception on when getting ivar
+# test ractor exception on when setting ivar
assert_equal '42', %q{
class A
def self.foo
_foo = 1
_bar = 2
begin
- @bar
+ @bar = _foo + _bar
rescue Ractor::IsolationError
42
end