Skip to content

Commit

Permalink
[GC] Fix an assertion that assumed ICBuffer should be cleaned
Browse files Browse the repository at this point in the history
Summary: Since
dragonwell-project@d4c0831
some cleanup tasks might be skipped in UseCompactObjectHeaders.
We should fix related assertions.

Testing: hotspot/jtreg

Reviewers: mmyxym, weixlu

Issue: dragonwell-project#850
  • Loading branch information
linade committed Aug 2, 2024
1 parent 1f05e2b commit 38d15a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1CollectedHeap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 38d15a6

Please sign in to comment.