Skip to content

Commit ccc8610

Browse files
committed
Remove RUBY_GC_HEAP_INIT_SLOTS environment variable
1 parent 4c07e61 commit ccc8610

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

ruby.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,13 +1811,6 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
18111811
}
18121812
}
18131813

1814-
/* [Feature #19785] Warning for removed GC environment variable.
1815-
* Remove this in Ruby 3.4. */
1816-
if (getenv("RUBY_GC_HEAP_INIT_SLOTS")) {
1817-
rb_warn_deprecated("The environment variable RUBY_GC_HEAP_INIT_SLOTS",
1818-
"environment variables RUBY_GC_HEAP_%d_INIT_SLOTS");
1819-
}
1820-
18211814
Init_ext(); /* load statically linked extensions before rubygems */
18221815
Init_extra_exts();
18231816

test/ruby/test_gc.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,6 @@ class << b; end
453453
end
454454

455455
def test_gc_parameter
456-
env = {
457-
"RUBY_GC_HEAP_INIT_SLOTS" => "100"
458-
}
459-
assert_in_out_err([env, "-W0", "-e", "exit"], "", [], [])
460-
assert_in_out_err([env, "-W:deprecated", "-e", "exit"], "", [],
461-
/The environment variable RUBY_GC_HEAP_INIT_SLOTS is deprecated; use environment variables RUBY_GC_HEAP_%d_INIT_SLOTS instead/)
462-
463456
env = {}
464457
GC.stat_heap.keys.each do |heap|
465458
env["RUBY_GC_HEAP_#{heap}_INIT_SLOTS"] = "200000"

0 commit comments

Comments
 (0)