File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5764,17 +5764,19 @@ ruby_gc_set_params(int safe_level)
57645764 if (safe_level > 0 ) return ;
57655765
57665766 /* RUBY_GC_HEAP_FREE_SLOTS */
5767- if (get_envparam_int ("RUBY_FREE_MIN" , & gc_params .heap_free_slots , 0 )) {
5767+ if (get_envparam_int ("RUBY_GC_HEAP_FREE_SLOTS" , & gc_params .heap_free_slots , 0 )) {
5768+ /* ok */
5769+ }
5770+ else if (get_envparam_int ("RUBY_FREE_MIN" , & gc_params .heap_free_slots , 0 )) {
57685771 rb_warn ("RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead." );
57695772 }
5770- get_envparam_int ("RUBY_GC_HEAP_FREE_SLOTS" , & gc_params .heap_free_slots , 0 );
57715773
57725774 /* RUBY_GC_HEAP_INIT_SLOTS */
5773- if (get_envparam_int ("RUBY_HEAP_MIN_SLOTS" , & gc_params .heap_init_slots , 0 )) {
5774- rb_warn ("RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead." );
5775+ if (get_envparam_int ("RUBY_GC_HEAP_INIT_SLOTS" , & gc_params .heap_init_slots , 0 )) {
57755776 gc_set_initial_pages ();
57765777 }
5777- if (get_envparam_int ("RUBY_GC_HEAP_INIT_SLOTS" , & gc_params .heap_init_slots , 0 )) {
5778+ else if (get_envparam_int ("RUBY_HEAP_MIN_SLOTS" , & gc_params .heap_init_slots , 0 )) {
5779+ rb_warn ("RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead." );
57785780 gc_set_initial_pages ();
57795781 }
57805782
You can’t perform that action at this time.
0 commit comments