--- a/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp Thu Oct 29 14:58:44 2015 +0100
+++ b/hotspot/src/share/vm/gc/g1/g1CollectorPolicy.hpp Thu Oct 29 17:32:08 2015 +0100
@@ -27,6 +27,7 @@
#include "gc/g1/collectionSetChooser.hpp"
#include "gc/g1/g1CollectorState.hpp"
+#include "gc/g1/g1GCPhaseTimes.hpp"
#include "gc/g1/g1InCSetState.hpp"
#include "gc/g1/g1MMUTracker.hpp"
#include "gc/g1/g1Predictions.hpp"
@@ -39,7 +40,6 @@
class HeapRegion;
class CollectionSetChooser;
-class G1GCPhaseTimes;
// TraceYoungGenTime collects data on _both_ young and mixed evacuation pauses
// (the latter may contain non-young regions - i.e. regions that are
@@ -378,6 +378,9 @@
double accum_yg_surv_rate_pred(int age) const;
+protected:
+ virtual double average_time_ms(G1GCPhaseTimes::GCParPhases phase) const;
+
private:
// Statistics kept per GC stoppage, pause or full.
TruncatedSeq* _recent_prev_end_times_for_all_gcs_sec;