Actions
Bug #19836
closedParser leaks memory for incomplete lambdas
Description
GitHub Pull Request: https://github.com/ruby/ruby/pull/8192
The parser does not free the chain of struct vtable
, which causes memory leaks.
The following script reproduces this issue:
10.times do
100_000.times do
Ripper.parse("-> {")
end
puts `ps -o rss= -p #{$$}`
end
Updated by peterzhu2118 (Peter Zhu) over 1 year ago
- Status changed from Open to Closed
Applied in changeset git|0b8f15575a440f85ac686f5b0eae8f8b7c2b72e7.
Fix memory leak for incomplete lambdas
[Bug #19836]
The parser does not free the chain of struct vtable
, which causes
memory leaks.
The following script reproduces this issue:
10.times do
100_000.times do
Ripper.parse("-> {")
end
puts `ps -o rss= -p #{$$}`
end
Updated by nagachika (Tomoyuki Chikanaga) over 1 year ago
- Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED to 3.0: REQUIRED, 3.1: REQUIRED, 3.2: DONE
ruby_3_2 0c908fa681271f13750aa64420203f1a58fa03fe merged revision(s) 0b8f15575a440f85ac686f5b0eae8f8b7c2b72e7.
Actions
Like0
Like0Like0