summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-06-04 00:21:33 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-12-26 15:11:23 +0900
commitccc8610b660ef225b304aae7b820bad036621a87 (patch)
tree0543fcaca5e49e970fd2b456737e0699d1fde95a
parent4c07e61bc937b39774862e33bbac8c9c234f3dbf (diff)
Remove `RUBY_GC_HEAP_INIT_SLOTS` environment variable
-rw-r--r--ruby.c7
-rw-r--r--test/ruby/test_gc.rb7
2 files changed, 0 insertions, 14 deletions
diff --git a/ruby.c b/ruby.c
index b00fc1502d..28f43176d6 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1811,13 +1811,6 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
}
}
- /* [Feature #19785] Warning for removed GC environment variable.
- * Remove this in Ruby 3.4. */
- if (getenv("RUBY_GC_HEAP_INIT_SLOTS")) {
- rb_warn_deprecated("The environment variable RUBY_GC_HEAP_INIT_SLOTS",
- "environment variables RUBY_GC_HEAP_%d_INIT_SLOTS");
- }
-
Init_ext(); /* load statically linked extensions before rubygems */
Init_extra_exts();
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 594e2b8aa8..09199c34b1 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -453,13 +453,6 @@ class TestGc < Test::Unit::TestCase
end
def test_gc_parameter
- env = {
- "RUBY_GC_HEAP_INIT_SLOTS" => "100"
- }
- assert_in_out_err([env, "-W0", "-e", "exit"], "", [], [])
- assert_in_out_err([env, "-W:deprecated", "-e", "exit"], "", [],
- /The environment variable RUBY_GC_HEAP_INIT_SLOTS is deprecated; use environment variables RUBY_GC_HEAP_%d_INIT_SLOTS instead/)
-
env = {}
GC.stat_heap.keys.each do |heap|
env["RUBY_GC_HEAP_#{heap}_INIT_SLOTS"] = "200000"