8303344: After JDK-8302760, G1 heap verification does not exit VM after errors

Reviewed-by: iwalulya, ayang
This commit is contained in:
Thomas Schatzl 2023-03-01 12:34:53 +00:00
parent 4c5d9cfc64
commit 8b86e1ee11

@ -645,7 +645,7 @@ bool HeapRegion::verify_liveness_and_remset(VerifyOption vo) const {
p2i(p), p2i(top()));
return true;
}
return false;
return (cl.num_failures() + other_failures) != 0;
}
bool HeapRegion::verify(VerifyOption vo) const {