
14 Jan
2023
14 Jan
'23
3:56 p.m.
Issue #19341 has been reported by luke-gru (Luke Gruber). ---------------------------------------- Bug #19341: Write cache issue with class variables https://bugs.ruby-lang.org/issues/19341 * Author: luke-gru (Luke Gruber) * Status: Open * Priority: Normal * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- ``` ruby class SetCvar def self.set(val) @@a = val # inline cache end end def test_set_cvar_on_frozen_object SetCvar.set(1) # fill write cache SetCvar.freeze SetCvar.set(2) # hit write cache, but should check frozen status end test_set_cvar_on_frozen_object() ``` PR Here: https://github.com/ruby/ruby/pull/7124 -- https://bugs.ruby-lang.org/