Project

General

Profile

Actions

Bug #19901

closed

Module clone memory leak

Added by HParker (Adam Hess) 8 months ago. Updated 8 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:114889]

Description

GitHub PR: https://github.com/ruby/ruby/pull/8503

reproduction:

m = Module.new

20.times do
  100_000.times do
    m.clone
  end

  puts `ps -o rss= -p #{$$}`
end

before:

21544
24708
27860
31024
33928
37360
40264
43432
46600
49768
52936
55840
59008
62176
65344
68512
71680
74584
77752
80920

after:

18808
18808
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
18872
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0