Skip to content

Commit

Permalink
8293213: G1: Remove redundant assertion in G1RemSet::clean_card_befor…
Browse files Browse the repository at this point in the history
…e_refine

Reviewed-by: tschatzl, kbarrett
  • Loading branch information
albertnetymk committed Sep 6, 2022
1 parent a92c1ff commit 6a1e98c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hotspot/share/gc/g1/g1RemSet.cpp
Expand Up @@ -1602,7 +1602,7 @@ inline void check_card_ptr(CardTable::CardValue* card_ptr, G1CardTable* ct) {
}

bool G1RemSet::clean_card_before_refine(CardValue** const card_ptr_addr) {
assert(!_g1h->is_gc_active(), "Only call concurrently");
assert(!SafepointSynchronize::is_at_safepoint(), "Only call concurrently");

CardValue* card_ptr = *card_ptr_addr;
// Find the start address represented by the card.
Expand Down Expand Up @@ -1657,8 +1657,6 @@ bool G1RemSet::clean_card_before_refine(CardValue** const card_ptr_addr) {
//

if (G1HotCardCache::use_cache()) {
assert(!SafepointSynchronize::is_at_safepoint(), "sanity");

const CardValue* orig_card_ptr = card_ptr;
card_ptr = _hot_card_cache->insert(card_ptr);
if (card_ptr == NULL) {
Expand Down

1 comment on commit 6a1e98c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.