Skip to content

Commit 0d8ec42

Browse files
committedAug 6, 2024
8337642: Remove unused APIs of GCPolicyCounters
Reviewed-by: tschatzl
1 parent 2057594 commit 0d8ec42

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed
 

‎src/hotspot/share/gc/parallel/gcAdaptivePolicyCounters.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,6 @@ class GCAdaptivePolicyCounters : public GCPolicyCounters {
223223
}
224224

225225
void set_size_policy(AdaptiveSizePolicy* v) { _size_policy = v; }
226-
227-
virtual GCPolicyCounters::Name kind() const {
228-
return GCPolicyCounters::GCAdaptivePolicyCountersKind;
229-
}
230226
};
231227

232228
#endif // SHARE_GC_PARALLEL_GCADAPTIVEPOLICYCOUNTERS_HPP

‎src/hotspot/share/gc/parallel/psGCAdaptivePolicyCounters.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,6 @@ class PSGCAdaptivePolicyCounters : public GCAdaptivePolicyCounters {
180180
// counter or from globals. This is distinguished from counters
181181
// that are updated via input parameters.
182182
void update_counters();
183-
184-
virtual GCPolicyCounters::Name kind() const {
185-
return GCPolicyCounters::PSGCAdaptivePolicyCountersKind;
186-
}
187183
};
188184

189185
#endif // SHARE_GC_PARALLEL_PSGCADAPTIVEPOLICYCOUNTERS_HPP

‎src/hotspot/share/gc/serial/defNewGeneration.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,6 @@ void DefNewGeneration::gc_epilogue(bool full) {
833833
assert(!GCLocker::is_active(), "We should not be executing here");
834834
// update the generation and space performance counters
835835
update_counters();
836-
SerialHeap::heap()->counters()->update_counters();
837836
}
838837

839838
void DefNewGeneration::update_counters() {

‎src/hotspot/share/gc/shared/gcPolicyCounters.hpp

-13
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ class GCPolicyCounters: public CHeapObj<mtGC> {
4646
const char* _name_space;
4747

4848
public:
49-
enum Name {
50-
NONE,
51-
GCPolicyCountersKind,
52-
GCAdaptivePolicyCountersKind,
53-
PSGCAdaptivePolicyCountersKind
54-
};
55-
5649
GCPolicyCounters(const char* name, int collectors, int generations);
5750

5851
inline PerfVariable* tenuring_threshold() const {
@@ -68,12 +61,6 @@ class GCPolicyCounters: public CHeapObj<mtGC> {
6861
}
6962

7063
const char* name_space() const { return _name_space; }
71-
72-
virtual void update_counters() {}
73-
74-
virtual GCPolicyCounters::Name kind() const {
75-
return GCPolicyCounters::GCPolicyCountersKind;
76-
}
7764
};
7865

7966
#endif // SHARE_GC_SHARED_GCPOLICYCOUNTERS_HPP

0 commit comments

Comments
 (0)
Please sign in to comment.