From: nagachika00@... Date: 2020-03-19T12:55:44+00:00 Subject: [ruby-core:97555] [Ruby master Bug#16139] setinstancevariable on MJIT may not check frozen flag Issue #16139 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.5: DONTNEED, 2.6: REQUIRED to 2.5: DONTNEED, 2.6: DONE ruby_2_6 r67846 merged revision(s) c14b67b2a8cf60b37cfb221d8b97c6eb91833522. ---------------------------------------- Bug #16139: setinstancevariable on MJIT may not check frozen flag https://bugs.ruby-lang.org/issues/16139#change-84711 * Author: k0kubun (Takashi Kokubun) * Status: Closed * Priority: Normal * Assignee: k0kubun (Takashi Kokubun) * ruby -v: ruby 2.7.0dev (2019-09-03T12:12:31Z master beaabd2308) [x86_64-linux] * Backport: 2.5: DONTNEED, 2.6: DONE ---------------------------------------- ``` class A def a @a = 1 end end a = A.new a.a a.a a.a a.freeze a.a ``` ## without JIT ``` $ ruby --disable-gems a.rb Traceback (most recent call last): 1: from a.rb:12:in `
' a.rb:3:in `a': can't modify frozen A: # (FrozenError) ``` ## with JIT ``` $ ruby --disable-gems --jit-min-calls=3 --jit-wait a.rb ``` (no error) -- https://bugs.ruby-lang.org/ Unsubscribe: