summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-05-06 10:53:48 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-05-09 08:45:24 -0400
commite28e9c63c64fc501751ae726e31c28b83fa08b4d (patch)
tree7e15326d402731086a6bb501659c4753649e3111 /spec
parentf7d480378adcb1452daf767d8cc6960f881f356b (diff)
Fix heap_extend_pages when total_slots is 0
Some size pools may not have any pages/slots, so total_slots is 0. This causes a divide-by-zero in the calculation. This commit adds a special case to catch the case when total_slots is 0 and returns the number of pages for heap_init_slots.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5885
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions