summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-08-28 16:34:27 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-08-28 18:01:29 -0400
commitfd0df1f8c6845671c86eddd85c9bcced30501690 (patch)
tree5e402dc35fdbfe5b089f1dd55eaf2db21ca4ea3c /node.c
parent5485680244bc40a9dba52e468fc5705973f2f5bd (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 'node.c')
0 files changed, 0 insertions, 0 deletions