8337642: Remove unused APIs of GCPolicyCounters

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2024-08-06 06:59:11 +00:00
parent 2057594961
commit 0d8ec42969
4 changed files with 0 additions and 22 deletions

View File

@ -223,10 +223,6 @@ class GCAdaptivePolicyCounters : public GCPolicyCounters {
}
void set_size_policy(AdaptiveSizePolicy* v) { _size_policy = v; }
virtual GCPolicyCounters::Name kind() const {
return GCPolicyCounters::GCAdaptivePolicyCountersKind;
}
};
#endif // SHARE_GC_PARALLEL_GCADAPTIVEPOLICYCOUNTERS_HPP

View File

@ -180,10 +180,6 @@ class PSGCAdaptivePolicyCounters : public GCAdaptivePolicyCounters {
// counter or from globals. This is distinguished from counters
// that are updated via input parameters.
void update_counters();
virtual GCPolicyCounters::Name kind() const {
return GCPolicyCounters::PSGCAdaptivePolicyCountersKind;
}
};
#endif // SHARE_GC_PARALLEL_PSGCADAPTIVEPOLICYCOUNTERS_HPP

View File

@ -833,7 +833,6 @@ void DefNewGeneration::gc_epilogue(bool full) {
assert(!GCLocker::is_active(), "We should not be executing here");
// update the generation and space performance counters
update_counters();
SerialHeap::heap()->counters()->update_counters();
}
void DefNewGeneration::update_counters() {

View File

@ -46,13 +46,6 @@ class GCPolicyCounters: public CHeapObj<mtGC> {
const char* _name_space;
public:
enum Name {
NONE,
GCPolicyCountersKind,
GCAdaptivePolicyCountersKind,
PSGCAdaptivePolicyCountersKind
};
GCPolicyCounters(const char* name, int collectors, int generations);
inline PerfVariable* tenuring_threshold() const {
@ -68,12 +61,6 @@ public:
}
const char* name_space() const { return _name_space; }
virtual void update_counters() {}
virtual GCPolicyCounters::Name kind() const {
return GCPolicyCounters::GCPolicyCountersKind;
}
};
#endif // SHARE_GC_SHARED_GCPOLICYCOUNTERS_HPP