summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2023-02-06 16:41:23 +0900
committerNARUSE, Yui <naruse@airemix.jp>2023-02-06 16:41:23 +0900
commit3426ebd0489654f951a8b92efaf5e72b9f43efab (patch)
tree8bc6c52d943692f6be09e85c5ba3387fdec5da68 /include/ruby
parent3a88589399f7f1059be245f766809c49790ad939 (diff)
merge revision(s) c6f84e918943a0bf8db6fee556fc53180d257510: [Backport #19398]
[Bug #19398] Memory leak in WeakMap There's a memory leak in ObjectSpace::WeakMap due to not freeing the `struct weakmap`. It can be seen in the following script: ``` 100.times do 10000.times do ObjectSpace::WeakMap.new end # Output the Resident Set Size (memory usage, in KB) of the current Ruby process puts `ps -o rss= -p #{$$}` end ``` --- gc.c | 1 + test/ruby/test_weakmap.rb | 9 +++++++++ 2 files changed, 10 insertions(+)
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions