From b542bcba57a1ac79b9b7182dbf984b447754fafc Mon Sep 17 00:00:00 2001 From: Albert Mingkun Yang Date: Mon, 11 Jul 2022 07:58:03 +0000 Subject: [PATCH] 8289729: G1: Incorrect verification logic in G1ConcurrentMark::clear_next_bitmap Reviewed-by: tschatzl, iwalulya --- src/hotspot/share/gc/g1/g1ConcurrentMark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp b/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp index 6977fde7e0ebd..be46d7ac3086d 100644 --- a/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp +++ b/src/hotspot/share/gc/g1/g1ConcurrentMark.cpp @@ -703,7 +703,7 @@ void G1ConcurrentMark::clear_next_bitmap(WorkerThreads* workers, bool may_yield) log_debug(gc, ergo)("Running %s with %u workers for " SIZE_FORMAT " work units.", cl.name(), num_workers, num_chunks); workers->run_task(&cl, num_workers); - guarantee(!may_yield || cl.is_complete(), "Must have completed iteration when not yielding."); + guarantee(may_yield || cl.is_complete(), "Must have completed iteration when not yielding."); } void G1ConcurrentMark::cleanup_for_next_mark() {