Remove unneeded functions

This commit is contained in:
Kelvin Nilsen 2026-01-15 17:37:15 +00:00
parent 70b7ebf82a
commit 29672214ff
2 changed files with 1 additions and 8 deletions

View File

@ -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;

View File

@ -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).