hotspot/src/share/vm/gc_implementation/g1/heapRegion.cpp
changeset 5377 bcf55c5acf4e
parent 5350 cccf0925702e
child 5545 c531522ec99a
equal deleted inserted replaced
5371:ff9031a745d9 5377:bcf55c5acf4e
   288 
   288 
   289   int region_size_log = log2_long((jlong) region_size);
   289   int region_size_log = log2_long((jlong) region_size);
   290   // Recalculate the region size to make sure it's a power of
   290   // Recalculate the region size to make sure it's a power of
   291   // 2. This means that region_size is the largest power of 2 that's
   291   // 2. This means that region_size is the largest power of 2 that's
   292   // <= what we've calculated so far.
   292   // <= what we've calculated so far.
   293   region_size = 1 << region_size_log;
   293   region_size = ((uintx)1 << region_size_log);
   294 
   294 
   295   // Now make sure that we don't go over or under our limits.
   295   // Now make sure that we don't go over or under our limits.
   296   if (region_size < MIN_REGION_SIZE) {
   296   if (region_size < MIN_REGION_SIZE) {
   297     region_size = MIN_REGION_SIZE;
   297     region_size = MIN_REGION_SIZE;
   298   } else if (region_size > MAX_REGION_SIZE) {
   298   } else if (region_size > MAX_REGION_SIZE) {