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:
parent
e28e9c63c6
commit
85479b34f7
Notes:
git
2022-05-09 21:45:48 +09:00
1 changed files with 0 additions and 2 deletions
2
gc.c
2
gc.c
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue