Actions
Bug #9134
closedRUBY_HEAP_MIN_SLOTS does not work correctly in Ruby 2.0
Description
sam@ubuntu:~/Source$ rbenv shell ruby-head
sam@ubuntu:~/Source$ RUBY_HEAP_MIN_SLOTS=$(( 408*1000 )) ruby -e "puts GC.stat[:heap_length]"
1000
sam@ubuntu:~/Source$ rbenv shell 2.0.0-p247
sam@ubuntu:~/Source$ RUBY_HEAP_MIN_SLOTS=$(( 408*1000 )) ruby -e "puts GC.stat[:heap_length]"
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.
Updated by jeremyevans0 (Jeremy Evans) over 5 years ago
- Status changed from Open to Closed
- Backport deleted (
1.9.3: UNKNOWN, 2.0.0: UNKNOWN)
Actions
Like0
Like0