hotspot/src/share/vm/gc_implementation/g1/heapRegionSeq.hpp
changeset 24106 dae9277bdf2a
parent 22551 9bf46d16dcc6
child 26157 70eddb655686
equal deleted inserted replaced
24105:93ea1c7cae36 24106:dae9277bdf2a
   108 
   108 
   109   // If addr is within the committed space return its corresponding
   109   // If addr is within the committed space return its corresponding
   110   // HeapRegion, otherwise return NULL.
   110   // HeapRegion, otherwise return NULL.
   111   inline HeapRegion* addr_to_region(HeapWord* addr) const;
   111   inline HeapRegion* addr_to_region(HeapWord* addr) const;
   112 
   112 
   113   // Return the HeapRegion that corresponds to the given
       
   114   // address. Assume the address is valid.
       
   115   inline HeapRegion* addr_to_region_unsafe(HeapWord* addr) const;
       
   116 
       
   117   // Return the number of regions that have been committed in the heap.
   113   // Return the number of regions that have been committed in the heap.
   118   uint length() const { return _committed_length; }
   114   uint length() const { return _committed_length; }
   119 
   115 
   120   // Return the maximum number of regions in the heap.
   116   // Return the maximum number of regions in the heap.
   121   uint max_length() const { return (uint)_regions.length(); }
   117   uint max_length() const { return (uint)_regions.length(); }