Commit 1d24e12
committed
Allow flex in heap growth threshold
Add a 7/8 multiplier to the min_free_slots checks in
gc_sweep_finish_heap and gc_marks_finish, allowing heaps to be up to
~12.5% below the free slots target without triggering a major GC or
forced growth.
With 12 heaps instead of 5, each heap independently hitting the exact
threshold would cause excessive memory growth. The slack prevents
cascading growth decisions while still ensuring heaps stay close to
their target occupancy.1 parent 56e357f commit 1d24e12
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3860 | 3860 | | |
3861 | 3861 | | |
3862 | 3862 | | |
3863 | | - | |
| 3863 | + | |
| 3864 | + | |
3864 | 3865 | | |
3865 | 3866 | | |
3866 | 3867 | | |
| |||
5488 | 5489 | | |
5489 | 5490 | | |
5490 | 5491 | | |
5491 | | - | |
| 5492 | + | |
5492 | 5493 | | |
5493 | 5494 | | |
5494 | 5495 | | |
| |||
0 commit comments