[ruby-core:114889] [Ruby master Bug#19901] Module clone memory leak

Issue #19901 has been reported by HParker (Adam Hess). ---------------------------------------- Bug #19901: Module clone memory leak https://bugs.ruby-lang.org/issues/19901 * Author: HParker (Adam Hess) * Status: Open * Priority: Normal * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- GitHub PR: https://github.com/ruby/ruby/pull/8503 reproduction: ```ruby 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 ``` -- https://bugs.ruby-lang.org/

Issue #19901 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.0: UNKNOWN, 3.1: REQUIRED, 3.2: REQUIRED to 3.0: UNKNOWN, 3.1: REQUIRED, 3.2: DONE ruby_3_2 a191cf561786bde3d0b7d298aab1fbeb1051645c merged revision(s) c42261059dfebabbf0391327a5e077545a9bc438. ---------------------------------------- Bug #19901: Module clone memory leak https://bugs.ruby-lang.org/issues/19901#change-104796 * Author: HParker (Adam Hess) * Status: Closed * Priority: Normal * Backport: 3.0: UNKNOWN, 3.1: REQUIRED, 3.2: DONE ---------------------------------------- GitHub PR: https://github.com/ruby/ruby/pull/8503 reproduction: ```ruby 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 ``` -- https://bugs.ruby-lang.org/
participants (2)
-
HParker (Adam Hess)
-
nagachika (Tomoyuki Chikanaga)