--- old/src/share/vm/gc_implementation/g1/heapRegion.cpp 2013-08-01 08:10:08.000000000 +0200 +++ new/src/share/vm/gc_implementation/g1/heapRegion.cpp 2013-08-01 08:10:07.000000000 +0200 @@ -314,6 +314,11 @@ region_size = MAX_REGION_SIZE; } + if (region_size != G1HeapRegionSize) { + // Update the flag to make sure that PrintFlagsFinal logs the correct value + FLAG_SET_ERGO(uintx, G1HeapRegionSize, region_size); + } + // And recalculate the log. region_size_log = log2_long((jlong) region_size);