src/hotspot/share/gc/g1/sparsePRT.hpp
changeset 52347 14ef0f74667b
parent 49455 848864ed9b17
child 52716 877dd2b0f36c
equal deleted inserted replaced
52346:08041b0d7c08 52347:14ef0f74667b
   229   //  see entries visible at the start of a collection pause.
   229   //  see entries visible at the start of a collection pause.
   230   //  All other operations are done using the _next hash table.
   230   //  All other operations are done using the _next hash table.
   231   RSHashTable* _cur;
   231   RSHashTable* _cur;
   232   RSHashTable* _next;
   232   RSHashTable* _next;
   233 
   233 
   234   HeapRegion* _hr;
       
   235 
       
   236   enum SomeAdditionalPrivateConstants {
   234   enum SomeAdditionalPrivateConstants {
   237     InitialCapacity = 16
   235     InitialCapacity = 16
   238   };
   236   };
   239 
   237 
   240   void expand();
   238   void expand();
   252   bool should_be_on_expanded_list();
   250   bool should_be_on_expanded_list();
   253 
   251 
   254   static SparsePRT* volatile _head_expanded_list;
   252   static SparsePRT* volatile _head_expanded_list;
   255 
   253 
   256 public:
   254 public:
   257   SparsePRT(HeapRegion* hr);
   255   SparsePRT();
   258 
   256 
   259   ~SparsePRT();
   257   ~SparsePRT();
   260 
   258 
   261   size_t occupied() const { return _next->occupied_cards(); }
   259   size_t occupied() const { return _next->occupied_cards(); }
   262   size_t mem_size() const;
   260   size_t mem_size() const;