1.1 --- a/src/share/vm/gc_implementation/shared/ageTable.cpp Wed Oct 03 08:08:52 2012 -0700 1.2 +++ b/src/share/vm/gc_implementation/shared/ageTable.cpp Wed Oct 03 20:31:41 2012 +0200 1.3 @@ -78,10 +78,10 @@ 1.4 } 1.5 } 1.6 1.7 -int ageTable::compute_tenuring_threshold(size_t survivor_capacity) { 1.8 +uint ageTable::compute_tenuring_threshold(size_t survivor_capacity) { 1.9 size_t desired_survivor_size = (size_t)((((double) survivor_capacity)*TargetSurvivorRatio)/100); 1.10 size_t total = 0; 1.11 - int age = 1; 1.12 + uint age = 1; 1.13 assert(sizes[0] == 0, "no objects with age zero should be recorded"); 1.14 while (age < table_size) { 1.15 total += sizes[age]; 1.16 @@ -90,13 +90,13 @@ 1.17 if (total > desired_survivor_size) break; 1.18 age++; 1.19 } 1.20 - int result = age < MaxTenuringThreshold ? age : MaxTenuringThreshold; 1.21 + uint result = age < MaxTenuringThreshold ? age : MaxTenuringThreshold; 1.22 1.23 if (PrintTenuringDistribution || UsePerfData) { 1.24 1.25 if (PrintTenuringDistribution) { 1.26 gclog_or_tty->cr(); 1.27 - gclog_or_tty->print_cr("Desired survivor size %ld bytes, new threshold %d (max %d)", 1.28 + gclog_or_tty->print_cr("Desired survivor size %ld bytes, new threshold %u (max %u)", 1.29 desired_survivor_size*oopSize, result, MaxTenuringThreshold); 1.30 } 1.31 1.32 @@ -106,7 +106,7 @@ 1.33 total += sizes[age]; 1.34 if (sizes[age] > 0) { 1.35 if (PrintTenuringDistribution) { 1.36 - gclog_or_tty->print_cr("- age %3d: %10ld bytes, %10ld total", 1.37 + gclog_or_tty->print_cr("- age %3u: %10ld bytes, %10ld total", 1.38 age, sizes[age]*oopSize, total*oopSize); 1.39 } 1.40 }