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

changeset 3176
8229bd737950
parent 3175
4dfb2df418f2
child 3182
65a8ff39a6da
     1.1 --- a/src/share/vm/gc_implementation/g1/heapRegion.hpp	Thu Sep 22 10:57:37 2011 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegion.hpp	Fri Sep 23 16:07:49 2011 -0400
     1.3 @@ -357,6 +357,11 @@
     1.4    static int GrainWords;
     1.5    static int CardsPerRegion;
     1.6  
     1.7 +  static size_t align_up_to_region_byte_size(size_t sz) {
     1.8 +    return (sz + (size_t) GrainBytes - 1) &
     1.9 +                                      ~((1 << (size_t) LogOfHRGrainBytes) - 1);
    1.10 +  }
    1.11 +
    1.12    // It sets up the heap region size (GrainBytes / GrainWords), as
    1.13    // well as other related fields that are based on the heap region
    1.14    // size (LogOfHRGrainBytes / LogOfHRGrainWords /

mercurial