8021879: G1: G1HeapRegionSize flag value not updated correctly

Reviewed-by: tschatzl, jmasa
This commit is contained in:
Bengt Rutisson 2013-08-01 09:35:04 +02:00
parent 5a10114616
commit a1e1caf8ba
2 changed files with 69 additions and 0 deletions

View file

@ -314,6 +314,11 @@ void HeapRegion::setup_heap_region_size(uintx min_heap_size) {
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);