hotspot/src/share/vm/gc/g1/sparsePRT.hpp
changeset 46620 750c6edff33b
parent 46619 a3919f5e8d2b
child 46625 edefffab74e2
equal deleted inserted replaced
46619:a3919f5e8d2b 46620:750c6edff33b
    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