Project

General

Profile

Actions

Bug #18030

closed

Backport 1fac99afdae2671a9ca86bead5bde4d0e2eff1b4

Added by byroot (Jean Boussier) almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
[ruby-core:104546]

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 #1

Updated by jeremyevans0 (Jeremy Evans) almost 3 years ago

  • Status changed from Open to Closed
  • Backport changed from 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN to 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED

Updated by nagachika (Tomoyuki Chikanaga) almost 3 years ago

  • Backport changed from 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED to 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE

ruby_3_0 ca6ebde821991cb558003c3a1d680eaa8df3169d merged revision(s) 1fac99afdae2671a9ca86bead5bde4d0e2eff1b4.

Actions

Also available in: Atom PDF

Like0
Like0Like0