< prev index next >

src/share/vm/gc/g1/heapRegion.hpp

Print this page

        

@@ -329,10 +329,11 @@
     return (sz + (size_t) GrainBytes - 1) &
                                       ~((1 << (size_t) LogOfHRGrainBytes) - 1);
   }
 
   static size_t max_region_size();
+  static size_t min_region_size_in_words();
 
   // It sets up the heap region size (GrainBytes / GrainWords), as
   // well as other related fields that are based on the heap region
   // size (LogOfHRGrainBytes / LogOfHRGrainWords /
   // CardsPerRegion). All those fields are considered constant

@@ -415,10 +416,13 @@
   bool is_starts_humongous() const { return _type.is_starts_humongous(); }
   bool is_continues_humongous() const { return _type.is_continues_humongous();   }
 
   bool is_old() const { return _type.is_old(); }
 
+  bool is_pinned() const { return _type.is_pinned(); }
+  bool is_archive() const { return _type.is_archive(); }
+
   // For a humongous region, region in which it starts.
   HeapRegion* humongous_start_region() const {
     return _humongous_start_region;
   }
 

@@ -668,10 +672,12 @@
   void set_eden_pre_gc() { _type.set_eden_pre_gc(); }
   void set_survivor()    { _type.set_survivor();    }
 
   void set_old() { _type.set_old(); }
 
+  void set_archive() { _type.set_archive(); }
+
   // Determine if an object has been allocated since the last
   // mark performed by the collector. This returns true iff the object
   // is within the unmarked area of the region.
   bool obj_allocated_since_prev_marking(oop obj) const {
     return (HeapWord *) obj >= prev_top_at_mark_start();
< prev index next >