Project

General

Profile

Bug #10686 ยป test_symbol.patch

ReiOdaira (Rei Odaira), 09/27/2015 05:40 AM

View differences:

test/ruby/test_symbol.rb (working copy)
def test_symbol_fstr_leak
bug10686 = '[ruby-core:67268] [Bug #10686]'
x = 0
assert_no_memory_leak([], '', <<-"end;", bug10686, limit: 1.71)
200_000.times { |i| i.to_s.to_sym }
assert_no_memory_leak([], '200_000.times { |i| i.to_s.to_sym }; GC.start', <<-"end;", bug10686, limit: 1.71, rss: true)
200_000.times { |i| (i + 200_000).to_s.to_sym }
end;
end
    (1-1/1)