Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off Ruby 2.1 Deprecated RUBY_HEAP_MIN_SLOTS Warning

Tags:

ruby

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's complaining 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 migrate to RUBY_GC_HEAP_INIT_SLOTS, but this warning still shows up. Does anyone know how to turn this off? Am I missing something? Thanks.

like image 416
Juanito Fatas Avatar asked Dec 27 '13 16:12

Juanito Fatas


1 Answers

Use

unset RUBY_HEAP_MIN_SLOTS

to delete the environmental variable.

like image 136
Paulo Fidalgo Avatar answered Nov 15 '22 22:11

Paulo Fidalgo