1168 // as needed. |
1168 // as needed. |
1169 if (UseParNewGC) { |
1169 if (UseParNewGC) { |
1170 set_parnew_gc_flags(); |
1170 set_parnew_gc_flags(); |
1171 } |
1171 } |
1172 |
1172 |
1173 // MaxHeapSize is aligned down in collectorPolicy |
|
1174 size_t max_heap = align_size_down(MaxHeapSize, |
1173 size_t max_heap = align_size_down(MaxHeapSize, |
1175 CardTableRS::ct_max_alignment_constraint()); |
1174 CardTableRS::ct_max_alignment_constraint()); |
1176 |
1175 |
1177 // Now make adjustments for CMS |
1176 // Now make adjustments for CMS |
1178 intx tenuring_default = (intx)6; |
1177 intx tenuring_default = (intx)6; |
1206 // Too early to use gclog_or_tty |
1205 // Too early to use gclog_or_tty |
1207 tty->print_cr("CMS ergo set MaxNewSize: " SIZE_FORMAT, MaxNewSize); |
1206 tty->print_cr("CMS ergo set MaxNewSize: " SIZE_FORMAT, MaxNewSize); |
1208 } |
1207 } |
1209 |
1208 |
1210 // Code along this path potentially sets NewSize and OldSize |
1209 // Code along this path potentially sets NewSize and OldSize |
1211 |
|
1212 assert(max_heap >= InitialHeapSize, "Error"); |
|
1213 assert(max_heap >= NewSize, "Error"); |
|
1214 |
|
1215 if (PrintGCDetails && Verbose) { |
1210 if (PrintGCDetails && Verbose) { |
1216 // Too early to use gclog_or_tty |
1211 // Too early to use gclog_or_tty |
1217 tty->print_cr("CMS set min_heap_size: " SIZE_FORMAT |
1212 tty->print_cr("CMS set min_heap_size: " SIZE_FORMAT |
1218 " initial_heap_size: " SIZE_FORMAT |
1213 " initial_heap_size: " SIZE_FORMAT |
1219 " max_heap: " SIZE_FORMAT, |
1214 " max_heap: " SIZE_FORMAT, |