From 38d15a6620c2d503e879c1212e50e2a81f10d839 Mon Sep 17 00:00:00 2001 From: Yude Lin Date: Thu, 1 Aug 2024 11:44:52 +0800 Subject: [PATCH] [GC] Fix an assertion that assumed ICBuffer should be cleaned Summary: Since https://github.com/dragonwell-project/dragonwell11/commit/d4c08314a2cc2f44d157c40a5b4b5215af76d78c some cleanup tasks might be skipped in UseCompactObjectHeaders. We should fix related assertions. Testing: hotspot/jtreg Reviewers: mmyxym, weixlu Issue: https://github.com/dragonwell-project/dragonwell11/issues/850 --- src/hotspot/share/gc/g1/g1CollectedHeap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp index 2d1133370d0..f08e92112e1 100644 --- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp +++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp @@ -2477,7 +2477,7 @@ G1CollectedHeap* G1CollectedHeap::heap() { void G1CollectedHeap::gc_prologue(bool full) { // always_do_update_barrier = false; - assert(InlineCacheBuffer::is_empty(), "should have cleaned up ICBuffer"); + assert(UseCompactObjectHeaders || InlineCacheBuffer::is_empty(), "should have cleaned up ICBuffer"); // This summary needs to be printed before incrementing total collections. g1_rem_set()->print_periodic_summary_info("Before GC RS summary", total_collections());