diff options
author | Jean Boussier <[email protected]> | 2023-02-07 19:24:59 +0100 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2023-02-07 22:33:12 +0100 |
commit | 1e711439762f47be1d1770b058a2f0246f64eab9 () | |
tree | ecd2cedcbe9c613aaf37afeabda8187ff29ca325 | |
parent | 4713b084da2e03451e3478ad63b148545db3f1a9 (diff) |
Use more agressive RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR for GC tests
Notes: Merged: https://.com/ruby/ruby/pull/7263
-rw-r--r-- | test/ruby/test_gc.rb | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -335,13 +335,15 @@ class TestGc < Test::Unit::TestCase env = { "RUBY_GC_HEAP_INIT_SLOTS" => "100000", "RUBY_GC_HEAP_FREE_SLOTS" => "10000", - "RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR" => "0.9", } assert_normal_exit("exit", "", :child_env => env) - assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=0\.9/, "") - # always full GC when RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR < 1.0 - assert_in_out_err([env, "-e", "1000_000.times{Object.new}; p(GC.stat[:minor_gc_count] < GC.stat[:major_gc_count])"], "", ['true'], //, "") if use_rgengc? env = { "RUBY_GC_MALLOC_LIMIT" => "60000000", |