Actions
Bug #19903
closedFix memory leak in generating and loading iseq
Bug #19903:
Fix memory leak in generating and loading iseq
Description
PR: https://github.com/ruby/ruby/pull/8512
Reproduction:
10.times do
100_000.times do
RubyVM::InstructionSequence.load_from_binary(RubyVM::InstructionSequence.compile("def foo(bar:); end; foo(bar: :baz)").to_binary)
end
puts `ps -o rss= -p #{$$}`
end
before:
after:
Actions