8286304: Removal of diagnostic flag GCParallelVerificationEnabled

Reviewed-by: kbarrett, ayang
This commit is contained in:
Thomas Schatzl 2022-05-25 10:29:31 +00:00
parent e1f140d270
commit e32377e456
2 changed files with 4 additions and 11 deletions

View File

@ -485,14 +485,9 @@ void G1HeapVerifier::verify(VerifyOption vo) {
log_debug(gc, verify)("HeapRegions");
uint num_workers = GCParallelVerificationEnabled ? _g1h->workers()->active_workers() : 1u;
G1VerifyTask task(_g1h, vo);
_g1h->workers()->run_task(&task, num_workers);
if (task.failures()) {
failures = true;
}
if (failures) {
_g1h->workers()->run_task(&task);
if (failures || task.failures()) {
log_error(gc, verify)("Heap after failed verification (kind %u):",
static_cast<std::underlying_type_t<VerifyOption>>(vo));
// It helps to have the per-region information in the output to
@ -502,8 +497,9 @@ void G1HeapVerifier::verify(VerifyOption vo) {
ResourceMark rm;
LogStream ls(log.error());
_g1h->print_extended_on(&ls);
fatal("there should not have been any failures");
}
guarantee(!failures, "there should not have been any failures");
}
// Heap region set verification

View File

@ -538,9 +538,6 @@
"dictionary, classloader_data_graph, metaspace, jni_handles, " \
"codecache_oops, resolved_method_table, stringdedup") \
\
product(bool, GCParallelVerificationEnabled, true, DIAGNOSTIC, \
"Enable parallel memory system verification") \
\
product(bool, DeferInitialCardMark, false, DIAGNOSTIC, \
"When +ReduceInitialCardMarks, explicitly defer any that " \
"may arise from new_pre_store_barrier") \