src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/gc_implementation/concurrentMarkSweep

src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp

Print this page
rev 6347 : 8042298: Remove the names gen0 and gen1 from the GC code
Summary: Renamed gen0 and gen1 to young and old throughout the GC code.
Reviewed-by:


1324                 gch->gc_stats(1)->avg_promoted()->padded_average(),
1325                 _avg_pretenured->padded_average(),
1326                 tenuring_threshold, target_size, survivor_limit);
1327     gclog_or_tty->cr();
1328   }
1329 
1330   set_survivor_size(target_size);
1331 
1332   return tenuring_threshold;
1333 }
1334 
1335 bool CMSAdaptiveSizePolicy::get_and_clear_first_after_collection() {
1336   bool result = _first_after_collection;
1337   _first_after_collection = false;
1338   return result;
1339 }
1340 
1341 bool CMSAdaptiveSizePolicy::print_adaptive_size_policy_on(
1342                                                     outputStream* st) const {
1343 
1344   if (!UseAdaptiveSizePolicy) return false;


1345 
1346   GenCollectedHeap* gch = GenCollectedHeap::heap();
1347   Generation* gen0 = gch->get_gen(0);
1348   DefNewGeneration* def_new = gen0->as_DefNewGeneration();
1349   return
1350     AdaptiveSizePolicy::print_adaptive_size_policy_on(
1351                                          st,
1352                                          def_new->tenuring_threshold());
1353 }


1324                 gch->gc_stats(1)->avg_promoted()->padded_average(),
1325                 _avg_pretenured->padded_average(),
1326                 tenuring_threshold, target_size, survivor_limit);
1327     gclog_or_tty->cr();
1328   }
1329 
1330   set_survivor_size(target_size);
1331 
1332   return tenuring_threshold;
1333 }
1334 
1335 bool CMSAdaptiveSizePolicy::get_and_clear_first_after_collection() {
1336   bool result = _first_after_collection;
1337   _first_after_collection = false;
1338   return result;
1339 }
1340 
1341 bool CMSAdaptiveSizePolicy::print_adaptive_size_policy_on(
1342                                                     outputStream* st) const {
1343 
1344   if (!UseAdaptiveSizePolicy) {
1345     return false;
1346   }
1347 
1348   GenCollectedHeap* gch = GenCollectedHeap::heap();
1349   Generation* young = gch->get_gen(0);
1350   DefNewGeneration* def_new = young->as_DefNewGeneration();
1351   return AdaptiveSizePolicy::print_adaptive_size_policy_on(

1352                                          st,
1353                                          def_new->tenuring_threshold());
1354 }
src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File