Project

General

Profile

« Previous | Next » 

Revision 80e56d14

Added by peterzhu2118 (Peter Zhu) almost 3 years ago

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.