Commit a8009c9
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 5c968c5 commit a8009c9
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3870 | 3870 | | |
3871 | 3871 | | |
3872 | 3872 | | |
3873 | | - | |
| 3873 | + | |
| 3874 | + | |
3874 | 3875 | | |
3875 | 3876 | | |
3876 | 3877 | | |
| |||
5500 | 5501 | | |
5501 | 5502 | | |
5502 | 5503 | | |
5503 | | - | |
| 5504 | + | |
5504 | 5505 | | |
5505 | 5506 | | |
5506 | 5507 | | |
| |||
0 commit comments