Skip to content

Commit a89b525

Browse files
committed
8337721: G1: Remove unused G1CollectedHeap::young_collection_verify_type
Reviewed-by: tschatzl
1 parent dc35f3e commit a89b525

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/hotspot/share/gc/g1/g1CollectedHeap.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,16 +2336,6 @@ void G1CollectedHeap::start_new_collection_set() {
23362336
_cm->verify_no_collection_set_oops();
23372337
}
23382338

2339-
G1HeapVerifier::G1VerifyType G1CollectedHeap::young_collection_verify_type() const {
2340-
if (collector_state()->in_concurrent_start_gc()) {
2341-
return G1HeapVerifier::G1VerifyConcurrentStart;
2342-
} else if (collector_state()->in_young_only_phase()) {
2343-
return G1HeapVerifier::G1VerifyYoungNormal;
2344-
} else {
2345-
return G1HeapVerifier::G1VerifyMixed;
2346-
}
2347-
}
2348-
23492339
void G1CollectedHeap::verify_before_young_collection(G1HeapVerifier::G1VerifyType type) {
23502340
if (!VerifyBeforeGC) {
23512341
return;

src/hotspot/share/gc/g1/g1CollectedHeap.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,6 @@ class G1CollectedHeap : public CollectedHeap {
752752
// of the incremental collection pause, executed by the vm thread.
753753
void do_collection_pause_at_safepoint_helper();
754754

755-
G1HeapVerifier::G1VerifyType young_collection_verify_type() const;
756755
void verify_before_young_collection(G1HeapVerifier::G1VerifyType type);
757756
void verify_after_young_collection(G1HeapVerifier::G1VerifyType type);
758757

0 commit comments

Comments
 (0)