1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Peter Zhu 2022-05-06 13:43:18 -04:00
parent e28e9c63c6
commit 85479b34f7
Notes: git 2022-05-09 21:45:48 +09:00

2
gc.c
View file

@ -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));
}
}
}