diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-27 20:49:20 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-27 20:49:20 +0000 |
commit | a6eea9be6e27ab951c0aed1e2338ae73b151035f (patch) | |
tree | 4793474321e4bc369a80591740917db977e5ca20 | |
parent | b908b2d69edf375868e1a67dab8fe8aede67ef65 (diff) |
merge revision(s) 49813,52140: [Backport #10686]
* test/ruby/test_symbol.rb: avoid a false positive in AIX.
* test/ruby/test_symbol.rb (test_symbol_fstr_leak): add a warm-up
code and check RSS to avoid false positive on AIX and false
negative on Mac OS X. [Bug #10686]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | test/ruby/test_symbol.rb | 4 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 13 insertions, 3 deletions
@@ -1,3 +1,13 @@ +Sat Nov 28 05:47:27 2015 Rei Odaira <Rei.Odaira@gmail.com> + + * test/ruby/test_symbol.rb (test_symbol_fstr_leak): add a warm-up + code and check RSS to avoid false positive on AIX and false + negative on Mac OS X. [Bug #10686] + +Sat Nov 28 05:47:27 2015 Rei Odaira <Rei.Odaira@gmail.com> + + * test/ruby/test_symbol.rb: avoid a false positive in AIX. + Sat Nov 28 05:35:28 2015 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org> * test/objspace/test_objspace.rb diff --git a/test/ruby/test_symbol.rb b/test/ruby/test_symbol.rb index ee29cd544f..f94b519fe7 100644 --- a/test/ruby/test_symbol.rb +++ b/test/ruby/test_symbol.rb @@ -263,8 +263,8 @@ class TestSymbol < Test::Unit::TestCase def test_symbol_fstr_leak bug10686 = '[ruby-core:67268] [Bug #10686]' x = 0 - assert_no_memory_leak([], '', <<-"end;", bug10686, limit: 1.65) - 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,6 +1,6 @@ #define RUBY_VERSION "2.2.4" #define RUBY_RELEASE_DATE "2015-11-28" -#define RUBY_PATCHLEVEL 202 +#define RUBY_PATCHLEVEL 203 #define RUBY_RELEASE_YEAR 2015 #define RUBY_RELEASE_MONTH 11 |