Actions
Bug #18030
closedBackport 1fac99afdae2671a9ca86bead5bde4d0e2eff1b4
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
Description
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
require 'objspace'
ObjectSpace.trace_object_allocations do
GC.stress = true
class A
define_singleton_method(:foo) { }
end
p A.foo
end
Actions
Like0
Like0Like0