8302125: Make G1 full gc abort the VM after failing VerifyDuringGC verification

Reviewed-by: ayang, iwalulya
This commit is contained in:
Thomas Schatzl 2023-02-10 08:28:49 +00:00
parent 723433dbeb
commit 837d4644a7

View File

@ -127,7 +127,7 @@ void G1FullGCMarker::follow_array_chunk(objArrayOop array, int index) {
_verify_closure.set_containing_obj(array);
array->oop_iterate_range(&_verify_closure, beg_index, end_index);
if (_verify_closure.failures()) {
assert(false, "Failed");
fatal("there should not have been any failures");
}
}
}
@ -148,7 +148,7 @@ inline void G1FullGCMarker::follow_object(oop obj) {
obj->oop_iterate(&_verify_closure);
if (_verify_closure.failures()) {
log_warning(gc, verify)("Failed after %d", _verify_closure._cc);
assert(false, "Failed");
fatal("there should not have been any failures");
}
}
}