src/hotspot/share/gc/g1/heapRegionManager.hpp
changeset 59062 6530de931b8e
parent 59060 fce1fa1bdc91
equal deleted inserted replaced
59061:df6f2350edfa 59062:6530de931b8e
   190   // Return the number of committed free regions in the heap.
   190   // Return the number of committed free regions in the heap.
   191   uint num_free_regions() const {
   191   uint num_free_regions() const {
   192     return _free_list.length();
   192     return _free_list.length();
   193   }
   193   }
   194 
   194 
       
   195   uint num_free_regions(uint node_index) const {
       
   196     return _free_list.length(node_index);
       
   197   }
       
   198 
   195   size_t total_free_bytes() const {
   199   size_t total_free_bytes() const {
   196     return num_free_regions() * HeapRegion::GrainBytes;
   200     return num_free_regions() * HeapRegion::GrainBytes;
   197   }
   201   }
   198 
   202 
   199   // Return the number of available (uncommitted) regions.
   203   // Return the number of available (uncommitted) regions.