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)
5764
5764
if (safe_level > 0 ) return ;
5765
5765
5766
5766
/* 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 )) {
5768
5771
rb_warn ("RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead." );
5769
5772
}
5770
- get_envparam_int ("RUBY_GC_HEAP_FREE_SLOTS" , & gc_params .heap_free_slots , 0 );
5771
5773
5772
5774
/* 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 )) {
5775
5776
gc_set_initial_pages ();
5776
5777
}
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." );
5778
5780
gc_set_initial_pages ();
5779
5781
}
5780
5782
You can’t perform that action at this time.
0 commit comments