src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File warning2 Sdiff src/share/vm/gc_implementation/g1

src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp

Print this page
rev 3821 : [mq]: unused


1336     return expand_bytes;
1337   } else {
1338     return 0;
1339   }
1340 }
1341 
1342 void G1CollectorPolicy::print_tracing_info() const {
1343   _trace_gen0_time_data.print();
1344   _trace_gen1_time_data.print();
1345 }
1346 
1347 void G1CollectorPolicy::print_yg_surv_rate_info() const {
1348 #ifndef PRODUCT
1349   _short_lived_surv_rate_group->print_surv_rate_summary();
1350   // add this call for any other surv rate groups
1351 #endif // PRODUCT
1352 }
1353 
1354 #ifndef PRODUCT
1355 // for debugging, bit of a hack...
1356 static char*
1357 region_num_to_mbs(int length) {
1358   static char buffer[64];
1359   double bytes = (double) (length * HeapRegion::GrainBytes);
1360   double mbs = bytes / (double) (1024 * 1024);
1361   sprintf(buffer, "%7.2lfMB", mbs);
1362   return buffer;
1363 }
1364 #endif // PRODUCT
1365 
1366 uint G1CollectorPolicy::max_regions(int purpose) {
1367   switch (purpose) {
1368     case GCAllocForSurvived:
1369       return _max_survivor_regions;
1370     case GCAllocForTenured:
1371       return REGIONS_UNLIMITED;
1372     default:
1373       ShouldNotReachHere();
1374       return REGIONS_UNLIMITED;
1375   };
1376 }




1336     return expand_bytes;
1337   } else {
1338     return 0;
1339   }
1340 }
1341 
1342 void G1CollectorPolicy::print_tracing_info() const {
1343   _trace_gen0_time_data.print();
1344   _trace_gen1_time_data.print();
1345 }
1346 
1347 void G1CollectorPolicy::print_yg_surv_rate_info() const {
1348 #ifndef PRODUCT
1349   _short_lived_surv_rate_group->print_surv_rate_summary();
1350   // add this call for any other surv rate groups
1351 #endif // PRODUCT
1352 }
1353 
1354 #ifndef PRODUCT
1355 // for debugging, bit of a hack...
1356 char*
1357 region_num_to_mbs(int length) {
1358   static char buffer[64];
1359   double bytes = (double) (length * HeapRegion::GrainBytes);
1360   double mbs = bytes / (double) (1024 * 1024);
1361   sprintf(buffer, "%7.2lfMB", mbs);
1362   return buffer;
1363 }
1364 #endif // PRODUCT
1365 
1366 uint G1CollectorPolicy::max_regions(int purpose) {
1367   switch (purpose) {
1368     case GCAllocForSurvived:
1369       return _max_survivor_regions;
1370     case GCAllocForTenured:
1371       return REGIONS_UNLIMITED;
1372     default:
1373       ShouldNotReachHere();
1374       return REGIONS_UNLIMITED;
1375   };
1376 }


src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File