diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2022-12-20 09:06:29 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2022-12-20 11:32:51 -0500 |
| commit | 80e56d1438724d37ca09f61e560f95c00599cdf3 (patch) | |
| tree | 6489b9d756a53afe739408b8715bcffca20ab4a7 /test | |
| parent | c72a748b277af14e807aa3c4815a0287a6dce41c (diff) | |
Fix thrashing of major GC when size pool is small
If a size pooll is small, then `min_free_slots < heap_init_slots` is true.
This means that min_free_slots will be set to heap_init_slots. This
causes `swept_slots < min_free_slots` to be true in a later if statement.
The if statement could trigger a major GC which could cause major GC
thrashing.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6971
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
