Skip to content


8314113: G1: Remove unused G1CardSetInlinePtr::card_at
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl
  • Loading branch information
albertnetymk committed Aug 11, 2023
1 parent 62adeb0 commit 6ffc032
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hotspot/share/gc/g1/g1CardSetContainers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,6 @@ class G1CardSetInlinePtr : public StackObj {

static ContainerPtr merge(ContainerPtr orig_value, uint card_in_region, uint idx, uint bits_per_card);

static uint card_at(ContainerPtr value, uint const idx, uint const bits_per_card) {
uint8_t card_pos = card_pos_for(idx, bits_per_card);
uint result = ((uintptr_t)value >> card_pos) & (((uintptr_t)1 << bits_per_card) - 1);
return result;

uint find(uint const card_idx, uint const bits_per_card, uint start_at, uint num_cards);

Expand Down

1 comment on commit 6ffc032

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.