diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-05-06 13:43:18 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-05-09 08:45:24 -0400 |
commit | 85479b34f76d5b426c2a8224d8ed6d8c2ad81ca2 (patch) | |
tree | dcd2aa60d67e7940c247ee7b5dd3527b77f6bca3 | |
parent | e28e9c63c64fc501751ae726e31c28b83fa08b4d (diff) | |
download | ruby-85479b34f76d5b426c2a8224d8ed6d8c2ad81ca2.tar.gz |
Don't allocate new page on finish sweeping
We don't need to allocate a new page in gc_sweep_finish_size_pool.
It can be allocated when needed.
-rw-r--r-- | gc.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -5659,8 +5659,6 @@ gc_sweep_finish_size_pool(rb_objspace_t *objspace, rb_size_pool_t *size_pool) if (extend_page_count > size_pool->allocatable_pages) { size_pool_allocatable_pages_set(objspace, size_pool, extend_page_count); } - - heap_increment(objspace, size_pool, SIZE_POOL_EDEN_HEAP(size_pool)); } } } |