From 837d4644a71d39b939d0f26f7e5a2a7f015fffc2 Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Fri, 10 Feb 2023 08:28:49 +0000 Subject: [PATCH] 8302125: Make G1 full gc abort the VM after failing VerifyDuringGC verification Reviewed-by: ayang, iwalulya --- src/hotspot/share/gc/g1/g1FullGCMarker.inline.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/gc/g1/g1FullGCMarker.inline.hpp b/src/hotspot/share/gc/g1/g1FullGCMarker.inline.hpp index 3e6d1ad4232..d6075c7f593 100644 --- a/src/hotspot/share/gc/g1/g1FullGCMarker.inline.hpp +++ b/src/hotspot/share/gc/g1/g1FullGCMarker.inline.hpp @@ -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"); } } }