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

Print this page

        

@@ -352,10 +352,12 @@
   static size_t align_up_to_region_byte_size(size_t sz) {
     return (sz + (size_t) GrainBytes - 1) &
                                       ~((1 << (size_t) LogOfHRGrainBytes) - 1);
   }
 
+  // return the (conservative) maximum heap alignment for any heap region
+  static size_t max_heap_alignment();
   // 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
   // throughout the JVM's execution, therefore they should only be set