equal
deleted
inserted
replaced
66 public: |
66 public: |
67 // Returns the size of the entry, used for entry allocation. |
67 // Returns the size of the entry, used for entry allocation. |
68 static size_t size() { return sizeof(SparsePRTEntry) + sizeof(card_elem_t) * (cards_num() - card_array_alignment); } |
68 static size_t size() { return sizeof(SparsePRTEntry) + sizeof(card_elem_t) * (cards_num() - card_array_alignment); } |
69 // Returns the size of the card array. |
69 // Returns the size of the card array. |
70 static int cards_num() { |
70 static int cards_num() { |
71 return align_up(G1RSetSparseRegionEntries, card_array_alignment); |
71 return align_up((int)G1RSetSparseRegionEntries, (int)card_array_alignment); |
72 } |
72 } |
73 |
73 |
74 // Set the region_ind to the given value, and delete all cards. |
74 // Set the region_ind to the given value, and delete all cards. |
75 inline void init(RegionIdx_t region_ind); |
75 inline void init(RegionIdx_t region_ind); |
76 |
76 |