RFR(S) 8154467: Cleanup initialization of GCPolicyCounters
mikael.gerdin at oracle.com
Wed Apr 20 11:17:08 UTC 2016
Please review this small cleanup to how GCPolicyCounters are initialized
GCPolicyCounters* counters() is part of the CollectorPolicy API but in
fact it is not necessary to expose it at such a general level.
G1 has only used the object internally in the policy code and managing
the policy counters object can be safely moved inside the G1Policy.
ParalellGC has ignored initializing the field in the CollectorPolicy at
all, since it does not really use the CollectorPolicy API.
The Gen collectors can be adapted to access the counters() accessor
through the GenCollectorPolicy class instead.
Testing: RBT GC Testing
More information about the hotspot-gc-dev