summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-08-30 16:49:32 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-08-30 19:37:11 -0400
commit0aa404b9573d028d87072f40ecb9b86dc161b7ef (patch)
treea076ccf82c7c58b4835d036101d8ce1a8616096c /ruby.c
parent4aa98b2760944b04b827d6ba4037548a93ef94ff (diff)
Change heap init environment variable names
This commit changes RUBY_GC_HEAP_INIT_SIZE_{40,80,160,320,640}_SLOTS to RUBY_GC_HEAP_{0,1,2,3,4}_INIT_SLOTS. This is easier to use because the user does not need to determine the slot sizes (which can vary between 32 and 64 bit systems). They now just use the heap names (`GC.stat_heap.keys`).
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8335
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 213425950f..be2ea2d0cd 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1742,7 +1742,7 @@ ruby_opt_init(ruby_cmdline_options_t *opt)
* 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");
+ "environment variables RUBY_GC_HEAP_%d_INIT_SLOTS");
}
#if USE_RJIT