diff options
author | Peter Zhu <[email protected]> | 2023-08-24 14:23:19 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-08-25 21:50:56 -0400 |
commit | 9ea9f992487711fa1a66637edcaf1327d0cd5099 (patch) | |
tree | e48cb32d2078ed23f3be0897b6281ff11dcb28a6 /ruby.c | |
parent | 487d91fde18949e35d80ac1a4651a1f3124e1763 (diff) |
[Feature #19785] Deprecate RUBY_GC_HEAP_INIT_SLOTS
This environment variable is replaced by
`RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS`, so it doesn't make sense to keep it.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8147
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |