Skip to content

Commit

Permalink
8286115: G1: G1RemSetArrayOfCardsEntriesBase off-by-one error
Browse files Browse the repository at this point in the history
Reviewed-by: iwalulya, tschatzl
  • Loading branch information
albertnetymk committed May 5, 2022
1 parent 7e88ff8 commit fd41e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1Arguments.cpp
Expand Up @@ -137,7 +137,7 @@ void G1Arguments::initialize_card_set_configuration() {
if (FLAG_IS_DEFAULT(G1RemSetArrayOfCardsEntries)) {
uint max_cards_in_inline_ptr = G1CardSetConfiguration::max_cards_in_inline_ptr(HeapRegion::LogOfHRGrainBytes - CardTable::card_shift());
FLAG_SET_ERGO(G1RemSetArrayOfCardsEntries, MAX2(max_cards_in_inline_ptr * 2,
G1RemSetArrayOfCardsEntriesBase * (1u << (region_size_log_mb + 1))));
G1RemSetArrayOfCardsEntriesBase << region_size_log_mb));
}

// Round to next 8 byte boundary for array to maximize space usage.
Expand Down

1 comment on commit fd41e65

@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.