From 56073cd1eadca41f4712299f9647cd43f20d2dd8 Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Tue, 20 Feb 2024 09:19:14 +0000 Subject: [PATCH] 8326171: Serial: Remove VerifyGCLevel Reviewed-by: stefank, tschatzl --- src/hotspot/share/gc/serial/serialHeap.cpp | 9 ++++----- src/hotspot/share/gc/shared/gc_globals.hpp | 4 ---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/hotspot/share/gc/serial/serialHeap.cpp b/src/hotspot/share/gc/serial/serialHeap.cpp index fe0ba9f3e88..67ffce4918c 100644 --- a/src/hotspot/share/gc/serial/serialHeap.cpp +++ b/src/hotspot/share/gc/serial/serialHeap.cpp @@ -521,7 +521,7 @@ void SerialHeap::do_collection(bool full, print_heap_before_gc(); - if (run_verification && VerifyGCLevel <= 0 && VerifyBeforeGC) { + if (run_verification && VerifyBeforeGC) { prepare_for_verify(); prepared_for_verification = true; } @@ -533,7 +533,7 @@ void SerialHeap::do_collection(bool full, full, size, is_tlab, - run_verification && VerifyGCLevel <= 0, + run_verification, do_clear_all_soft_refs); if (size > 0 && (!is_tlab || _young_gen->supports_tlab_allocation()) && @@ -571,8 +571,7 @@ void SerialHeap::do_collection(bool full, print_heap_before_gc(); - if (!prepared_for_verification && run_verification && - VerifyGCLevel <= 1 && VerifyBeforeGC) { + if (!prepared_for_verification && run_verification && VerifyBeforeGC) { prepare_for_verify(); } @@ -598,7 +597,7 @@ void SerialHeap::do_collection(bool full, full, size, is_tlab, - run_verification && VerifyGCLevel <= 1, + run_verification, do_clear_all_soft_refs); CodeCache::on_gc_marking_cycle_finish(); diff --git a/src/hotspot/share/gc/shared/gc_globals.hpp b/src/hotspot/share/gc/shared/gc_globals.hpp index 652153922d1..4316480e782 100644 --- a/src/hotspot/share/gc/shared/gc_globals.hpp +++ b/src/hotspot/share/gc/shared/gc_globals.hpp @@ -617,10 +617,6 @@ "GC invoke count where +VerifyBefore/AfterGC kicks in") \ range(0, max_uintx) \ \ - product(int, VerifyGCLevel, 0, DIAGNOSTIC, \ - "Generation level at which to start +VerifyBefore/AfterGC") \ - range(0, 1) \ - \ product(uint, MaxTenuringThreshold, 15, \ "Maximum value for tenuring threshold") \ range(0, markWord::max_age + 1) \