summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 2b4397c001..213425950f 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1738,6 +1738,13 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
rb_warning_category_update(opt->warn.mask, opt->warn.set);
+ /* [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_INIT_SIZE_%d_SLOTS");
+ }
+
#if USE_RJIT
// rb_call_builtin_inits depends on RubyVM::RJIT.enabled?
if (opt->rjit.on)