diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2022-05-06 10:53:48 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2022-05-09 08:45:24 -0400 |
| commit | e28e9c63c64fc501751ae726e31c28b83fa08b4d (patch) | |
| tree | 7e15326d402731086a6bb501659c4753649e3111 /spec/ruby/library | |
| parent | f7d480378adcb1452daf767d8cc6960f881f356b (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/ruby/library')
0 files changed, 0 insertions, 0 deletions
