hotspot/src/share/vm/gc_implementation/g1/heapRegion.hpp
changeset 19986 33d188c66ed9
parent 19728 9e1556506d2d
child 23453 09cfb0164acf
equal deleted inserted replaced
19983:82c1a95ae314 19986:33d188c66ed9
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   352 
   352 
   353   static size_t align_up_to_region_byte_size(size_t sz) {
   353   static size_t align_up_to_region_byte_size(size_t sz) {
   354     return (sz + (size_t) GrainBytes - 1) &
   354     return (sz + (size_t) GrainBytes - 1) &
   355                                       ~((1 << (size_t) LogOfHRGrainBytes) - 1);
   355                                       ~((1 << (size_t) LogOfHRGrainBytes) - 1);
   356   }
   356   }
       
   357 
       
   358   static size_t max_region_size();
   357 
   359 
   358   // It sets up the heap region size (GrainBytes / GrainWords), as
   360   // It sets up the heap region size (GrainBytes / GrainWords), as
   359   // well as other related fields that are based on the heap region
   361   // well as other related fields that are based on the heap region
   360   // size (LogOfHRGrainBytes / LogOfHRGrainWords /
   362   // size (LogOfHRGrainBytes / LogOfHRGrainWords /
   361   // CardsPerRegion). All those fields are considered constant
   363   // CardsPerRegion). All those fields are considered constant