< prev index next >

src/share/vm/memory/defNewGeneration.cpp

Print this page

        

*** 549,562 **** bool parallel) { // We don't attempt to expand the young generation (but perhaps we should.) return allocate(size, is_tlab); } ! void DefNewGeneration::adjust_desired_tenuring_threshold() { // Set the desired survivor size to half the real survivor space _tenuring_threshold = ! age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize); } void DefNewGeneration::collect(bool full, bool clear_all_soft_refs, size_t size, --- 549,562 ---- bool parallel) { // We don't attempt to expand the young generation (but perhaps we should.) return allocate(size, is_tlab); } ! void DefNewGeneration::adjust_desired_tenuring_threshold(GCTracer &tracer) { // Set the desired survivor size to half the real survivor space _tenuring_threshold = ! age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize, tracer); } void DefNewGeneration::collect(bool full, bool clear_all_soft_refs, size_t size,
*** 662,672 **** } swap_spaces(); assert(to()->is_empty(), "to space should be empty now"); ! adjust_desired_tenuring_threshold(); // A successful scavenge should restart the GC time limit count which is // for full GC's. AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy(); size_policy->reset_gc_overhead_limit_count(); --- 662,672 ---- } swap_spaces(); assert(to()->is_empty(), "to space should be empty now"); ! adjust_desired_tenuring_threshold(gc_tracer); // A successful scavenge should restart the GC time limit count which is // for full GC's. AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy(); size_policy->reset_gc_overhead_limit_count();
< prev index next >