mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00
Fix default value of global_init_slots
Not setting a value to global_init_slots causes get_envparam_size to output a broken default value.
This commit is contained in:
parent
954b7ac81e
commit
c01b17f7fc
2 changed files with 3 additions and 1 deletions
|
@ -345,6 +345,8 @@ class TestGc < Test::Unit::TestCase
|
|||
assert_in_out_err([env, "-W0", "-e", "exit"], "", [], [], "[ruby-core:39795]")
|
||||
assert_in_out_err([env, "-W1", "-e", "exit"], "", [], [], "[ruby-core:39795]")
|
||||
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /RUBY_GC_HEAP_INIT_SLOTS=100000/, "[ruby-core:39795]")
|
||||
# Value of GC_HEAP_INIT_SLOTS is 10000
|
||||
assert_in_out_err([env, "-w", "-e", "exit"], "", [], /\(default value: 10000\)/)
|
||||
|
||||
env = {
|
||||
"RUBY_GC_HEAP_GROWTH_FACTOR" => "2.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue