comparison src/share/vm/memory/defNewGeneration.cpp @ 7643:3ac7d10a6572

Merge with hsx25/hotspot.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 31 Jan 2013 15:42:25 +0100
parents a30e7b564541
children 001ec9515f84
comparison
equal deleted inserted replaced
7573:17b6a63fe7c2 7643:3ac7d10a6572
548 bool parallel) { 548 bool parallel) {
549 // We don't attempt to expand the young generation (but perhaps we should.) 549 // We don't attempt to expand the young generation (but perhaps we should.)
550 return allocate(size, is_tlab); 550 return allocate(size, is_tlab);
551 } 551 }
552 552
553 void DefNewGeneration::adjust_desired_tenuring_threshold() {
554 // Set the desired survivor size to half the real survivor space
555 _tenuring_threshold =
556 age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize);
557 }
553 558
554 void DefNewGeneration::collect(bool full, 559 void DefNewGeneration::collect(bool full,
555 bool clear_all_soft_refs, 560 bool clear_all_soft_refs,
556 size_t size, 561 size_t size,
557 bool is_tlab) { 562 bool is_tlab) {
647 } 652 }
648 swap_spaces(); 653 swap_spaces();
649 654
650 assert(to()->is_empty(), "to space should be empty now"); 655 assert(to()->is_empty(), "to space should be empty now");
651 656
652 // Set the desired survivor size to half the real survivor space 657 adjust_desired_tenuring_threshold();
653 _tenuring_threshold =
654 age_table()->compute_tenuring_threshold(to()->capacity()/HeapWordSize);
655 658
656 // A successful scavenge should restart the GC time limit count which is 659 // A successful scavenge should restart the GC time limit count which is
657 // for full GC's. 660 // for full GC's.
658 AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy(); 661 AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy();
659 size_policy->reset_gc_overhead_limit_count(); 662 size_policy->reset_gc_overhead_limit_count();