diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2023-08-28 16:34:27 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2023-08-28 18:01:29 -0400 |
| commit | fd0df1f8c6845671c86eddd85c9bcced30501690 (patch) | |
| tree | 5e402dc35fdbfe5b089f1dd55eaf2db21ca4ea3c /include/ruby/backward.h | |
| parent | 5485680244bc40a9dba52e468fc5705973f2f5bd (diff) | |
Fix growth in minor GC when we have initial slots
If initial slots is set, then during a minor GC, if we have allocatable
pages but the heap is mostly full, then we will set `grow_heap` to true
since `total_slots` does not count allocatable pages so it will be less
than `init_slots`. This can cause `allocatable_pages` to grow to much
higher than desired since it will appear that the heap is mostly full.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8310
Diffstat (limited to 'include/ruby/backward.h')
0 files changed, 0 insertions, 0 deletions
