mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
Remove unneeded functions
This commit is contained in:
parent
70b7ebf82a
commit
29672214ff
@ -842,7 +842,7 @@ ShenandoahAllocationRate::ShenandoahAllocationRate() :
|
||||
double ShenandoahAllocationRate::force_sample(size_t allocated, size_t &unaccounted_bytes_allocated) {
|
||||
const double MinSampleTime = 0.002; // Do not sample if time since last update is less than 2 ms
|
||||
double now = os::elapsedTime();
|
||||
double time_since_last_update = now -_last_sample_time;
|
||||
double time_since_last_update = now - _last_sample_time;
|
||||
if (time_since_last_update < MinSampleTime) {
|
||||
unaccounted_bytes_allocated = allocated - _last_sample_value;
|
||||
_last_sample_value = 0;
|
||||
|
||||
@ -70,13 +70,6 @@ class ShenandoahAllocationRate : public CHeapObj<mtGC> {
|
||||
// Otherwise, return false. Significant divergence is recognized if (rate - _rate.avg()) / _rate.sd() > threshold.
|
||||
bool is_spiking(double rate, double threshold) const;
|
||||
|
||||
double interval() const {
|
||||
return _interval_sec;
|
||||
}
|
||||
double last_sample_time() const {
|
||||
return _last_sample_time;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
// Return the instantaneous rate calculated from (allocated - _last_sample_value) / (time - _last_sample_time).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user