From b906f0ed17f4824f12d7c939cfc21c7881f12dfd Mon Sep 17 00:00:00 2001 From: tmm1 Date: Wed, 23 Oct 2013 22:47:29 +0000 Subject: * gc.c: add new initial_growth_max tuning parameter. [ruby-core:57928] [Bug #9035] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_gc.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 30baebb67a..dfe5e31cfb 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -123,10 +123,12 @@ class TestGc < Test::Unit::TestCase assert_in_out_err([env, "-w", "-e", "exit"], "", [], /HEAP_MIN_SLOTS=100000/, "[ruby-core:39795]") env = { - "RUBY_HEAP_SLOTS_GROWTH_FACTOR" => "2.0" + "RUBY_HEAP_SLOTS_GROWTH_FACTOR" => "2.0", + "RUBY_HEAP_SLOTS_GROWTH_MAX" => "10000" } assert_normal_exit("exit", "", :child_env => env) assert_in_out_err([env, "-w", "-e", "exit"], "", [], /HEAP_SLOTS_GROWTH_FACTOR=2.0/, "") + assert_in_out_err([env, "-w", "-e", "exit"], "", [], /HEAP_SLOTS_GROWTH_MAX=10000/, "[ruby-core:57928]") env = { "RUBY_GC_MALLOC_LIMIT" => "60000000", -- cgit v1.2.3