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.
Fix thrashing of major GC when size pool is small
If a size pooll is small, then
min_free_slots < heap_init_slotsis true.This means that min_free_slots will be set to heap_init_slots. This
causes
swept_slots < min_free_slotsto be true in a later if statement.The if statement could trigger a major GC which could cause major GC
thrashing.