comparison src/share/vm/gc_implementation/g1/heapRegion.cpp @ 11978:dae8324fc7d1

8021879: G1: G1HeapRegionSize flag value not updated correctly Reviewed-by: tschatzl, jmasa
author brutisso
date Thu, 01 Aug 2013 09:35:04 +0200
parents e0c9a1d29eb4
children 3cce976666d9 5888334c9c24
comparison
equal deleted inserted replaced
11977:313227279a05 11978:dae8324fc7d1
312 region_size = MIN_REGION_SIZE; 312 region_size = MIN_REGION_SIZE;
313 } else if (region_size > MAX_REGION_SIZE) { 313 } else if (region_size > MAX_REGION_SIZE) {
314 region_size = MAX_REGION_SIZE; 314 region_size = MAX_REGION_SIZE;
315 } 315 }
316 316
317 if (region_size != G1HeapRegionSize) {
318 // Update the flag to make sure that PrintFlagsFinal logs the correct value
319 FLAG_SET_ERGO(uintx, G1HeapRegionSize, region_size);
320 }
321
317 // And recalculate the log. 322 // And recalculate the log.
318 region_size_log = log2_long((jlong) region_size); 323 region_size_log = log2_long((jlong) region_size);
319 324
320 // Now, set up the globals. 325 // Now, set up the globals.
321 guarantee(LogOfHRGrainBytes == 0, "we should only set it once"); 326 guarantee(LogOfHRGrainBytes == 0, "we should only set it once");