gc.c: allow multiple heaps.
Now, objects are managed by page. And a set of pages is called heap.
This commit supports multiple heaps in the object space.
Functions heap_* and rb_heap_t manages heap data structure.
Functions heap_page_* and struct heap_page manage page data
strcuture.
Now, objects are managed by page. And a set of pages is called heap.
This commit supports multiple heaps in the object space.
strcuture.
maintains all pages.
For example, pagaes are allocated from the heap_pages.
See https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/GC_design
and https://bugs.ruby-lang.org/attachments/4015/data-heap_structure_with_multiple_heaps.png
for more deitals.
Now, there is only one heap called `eden', which is a space for all
new generated objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e