8326171: Serial: Remove VerifyGCLevel

Reviewed-by: stefank, tschatzl
This commit is contained in:
Albert Mingkun Yang 2024-02-20 09:19:14 +00:00
parent bb675afae6
commit 56073cd1ea
2 changed files with 4 additions and 9 deletions

View File

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

View File

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