Disable Ruby 2.1 Deprecated RUBY_HEAP_MIN_SLOTS Warning

I have some GC settings in my .bash_profile :

 export RUBY_HEAP_MIN_SLOTS=1250000 export RUBY_HEAP_SLOTS_INCREMENT=100000 export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 export RUBY_GC_MALLOC_LIMIT=30000000 export RUBY_HEAP_FREE_MIN=12500 

When I use Ruby 2.1, it complains about RUBY_HEAP_MIN_SLOTS :

 /.rvm/rubies/ruby-2.1.0/bin/ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead. 

I turn to RUBY_GC_HEAP_INIT_SLOTS , but this warning still appears. Does anyone know how to disable this? Am I missing something? Thanks.

+7
ruby
source share
1 answer

Using

 unset RUBY_HEAP_MIN_SLOTS 

to remove the environment variable.

+11
source share

All Articles