[Bug #19906] Add the test
This commit is contained in:
parent
c74dc8b4af
commit
ec3d81629f
@ -781,4 +781,14 @@ class TestISeq < Test::Unit::TestCase
|
||||
end
|
||||
end;
|
||||
end
|
||||
|
||||
def test_loading_kwargs_memory_leak
|
||||
assert_no_memory_leak([], "#{<<~"begin;"}", "#{<<~'end;'}", rss: true)
|
||||
a = RubyVM::InstructionSequence.compile("foo(bar: :baz)").to_binary
|
||||
begin;
|
||||
1_000_000.times do
|
||||
RubyVM::InstructionSequence.load_from_binary(a)
|
||||
end
|
||||
end;
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user