6898948: G1: forensic instrumentation for out-of-bounds recent_avg_pause_time_ratio()

Added instrumentation and (temporary) assert in non-product mode; clipped the value when found out-of-bounds in product mode. Fix of original issue will follow collection of data from this instrumentation.

Reviewed-by: jcoomes, tonyp
This commit is contained in:
Y. Srinivas Ramakrishna 2009-11-13 11:55:26 -08:00
parent bedf908436
commit 241f0f0cd8
3 changed files with 65 additions and 2 deletions

View file

@ -74,6 +74,10 @@ public:
double davg() const; // decaying average
double dvariance() const; // decaying variance
double dsd() const; // decaying "standard deviation"
// Debugging/Printing
virtual void dump();
virtual void dump_on(outputStream* s);
};
class NumberSeq: public AbsSeq {
@ -91,6 +95,9 @@ public:
virtual void add(double val);
virtual double maximum() const { return _maximum; }
virtual double last() const { return _last; }
// Debugging/Printing
virtual void dump_on(outputStream* s);
};
class TruncatedSeq: public AbsSeq {
@ -114,4 +121,7 @@ public:
double oldest() const; // the oldest valid value in the sequence
double predict_next() const; // prediction based on linear regression
// Debugging/Printing
virtual void dump_on(outputStream* s);
};