< prev index next >

src/hotspot/share/gc/g1/heapRegionManager.hpp

Print this page
rev 51979 : imported patch 8071913-almost-done

@@ -121,14 +121,14 @@
   HeapRegion* new_heap_region(uint hrm_index);
 #ifdef ASSERT
 public:
   bool is_free(HeapRegion* hr) const;
 #endif
+public:
   // Returns whether the given region is available for allocation.
   bool is_available(uint region) const;
 
- public:
   // Empty constructor, we'll initialize it with the initialize() method.
   HeapRegionManager();
 
   void initialize(G1RegionToSpaceMapper* heap_storage,
                   G1RegionToSpaceMapper* prev_bitmap,

@@ -145,10 +145,14 @@
 
   // Return the HeapRegion at the given index. Assume that the index
   // is valid.
   inline HeapRegion* at(uint index) const;
 
+  // Return the HeapRegion at the given index, NULL if the index
+  // is for an unavailable region.
+  inline HeapRegion* at_or_null(uint index) const;
+
   // Return the next region (by index) that is part of the same
   // humongous object that hr is part of.
   inline HeapRegion* next_region_in_humongous(HeapRegion* hr) const;
 
   // If addr is within the committed space return its corresponding
< prev index next >