Currently, when we reclaim one or more regions we always add them to the end of the free list. Based on testing our performance team did, this seems to be pathological for applications that grow the heap very slowly given that regions that have just been reclaimed will be the last to be re-allocated, which causes us to "churn" unnecessarily through the free regions and touching the entire address space of the G1 heap even though we don't have to.
|