8154154: Separate G1 specific policy code from the CollectorPolicy class hierarchy

Move G1 runtime policy code to new class G1Policy which is unrelated to CollectorPolicy

Reviewed-by: kbarrett, ehelin
This commit is contained in:
Mikael Gerdin 2016-03-18 15:20:43 +01:00
parent 7ced38a6b5
commit 43c73dc321
34 changed files with 1692 additions and 1620 deletions

View file

@ -204,7 +204,7 @@ void HeapRegion::calc_gc_efficiency() {
// GC efficiency is the ratio of how much space would be
// reclaimed over how long we predict it would take to reclaim it.
G1CollectedHeap* g1h = G1CollectedHeap::heap();
G1CollectorPolicy* g1p = g1h->g1_policy();
G1Policy* g1p = g1h->g1_policy();
// Retrieve a prediction of the elapsed time for this region for
// a mixed gc because the region will only be evacuated during a