我的一些GC设置.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
当我使用Ruby 2.1时,它抱怨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.
我迁移到了RUBY_GC_HEAP_INIT_SLOTS
,但这个警告仍然显示出来.有谁知道如何关闭它?我错过了什么吗?谢谢.
使用
unset RUBY_HEAP_MIN_SLOTS
删除环境变量.