mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
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:
parent
7ced38a6b5
commit
43c73dc321
34 changed files with 1692 additions and 1620 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue