Actions
Bug #9134
closedRUBY_HEAP_MIN_SLOTS does not work correctly in Ruby 2.0
Bug #9134:
RUBY_HEAP_MIN_SLOTS does not work correctly in Ruby 2.0
Description
sam@ubuntu:/Source$ rbenv shell ruby-head/Source$ RUBY_HEAP_MIN_SLOTS=$(( 408*1000 )) ruby -e "puts GC.stat[:heap_length]"
sam@ubuntu:
1000
sam@ubuntu:/Source$ rbenv shell 2.0.0-p247/Source$ RUBY_HEAP_MIN_SLOTS=$(( 408*1000 )) ruby -e "puts GC.stat[:heap_length]"
sam@ubuntu:
1803
RUBY_HEAP_MIN_SLOTS is over committing heap space in 2.0 , this works perfectly fine in Ruby head.
This only affects Ruby 2.0 not Ruby head. The over growth happens on first GC run, it grows the heaps to the correct size, but then quickly grows it again.
Actions