From: "naruse (Yui NARUSE) via ruby-core" Date: 2023-01-25T07:35:32+00:00 Subject: [ruby-core:112024] [Ruby master Bug#19341] Write cache issue with class variables Issue #19341 has been updated by naruse (Yui NARUSE). This breaks CI on ruby_3_2 branch https://github.com/nurse/ruby/commit/ec9a6ae3f6961b0ece1a6fc67ea26033ee91498e ---------------------------------------- Bug #19341: Write cache issue with class variables https://bugs.ruby-lang.org/issues/19341#change-101456 * Author: luke-gru (Luke Gruber) * Status: Closed * Priority: Normal * Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED ---------------------------------------- ``` 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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/