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

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:

*** 1339,1353 **** } bool CMSAdaptiveSizePolicy::print_adaptive_size_policy_on( outputStream* st) const { ! if (!UseAdaptiveSizePolicy) return false; GenCollectedHeap* gch = GenCollectedHeap::heap(); ! Generation* gen0 = gch->get_gen(0); ! DefNewGeneration* def_new = gen0->as_DefNewGeneration(); ! return ! AdaptiveSizePolicy::print_adaptive_size_policy_on( st, def_new->tenuring_threshold()); } --- 1339,1354 ---- } bool CMSAdaptiveSizePolicy::print_adaptive_size_policy_on( outputStream* st) const { ! if (!UseAdaptiveSizePolicy) { ! return false; ! } GenCollectedHeap* gch = GenCollectedHeap::heap(); ! Generation* young = gch->get_gen(0); ! DefNewGeneration* def_new = young->as_DefNewGeneration(); ! return AdaptiveSizePolicy::print_adaptive_size_policy_on( st, def_new->tenuring_threshold()); }
src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File