From: jean.boussier@... Date: 2021-07-08T18:30:46+00:00 Subject: [ruby-core:104546] [Ruby master Bug#18030] Backport 1fac99afdae2671a9ca86bead5bde4d0e2eff1b4 Issue #18030 has been reported by byroot (Jean Boussier). ---------------------------------------- Bug #18030: Backport 1fac99afdae2671a9ca86bead5bde4d0e2eff1b4 https://bugs.ruby-lang.org/issues/18030 * Author: byroot (Jean Boussier) * Status: Open * Priority: Normal * ruby -v: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Ruby 3.0 is impacted by this bug too. Ruby 2.7 and older is fine. https://github.com/ruby/ruby/pull/4342 repro script ```ruby require 'objspace' ObjectSpace.trace_object_allocations do GC.stress = true class A define_singleton_method(:foo) { } end p A.foo end ``` -- https://bugs.ruby-lang.org/ Unsubscribe: