comparison src/share/vm/memory/defNewGeneration.cpp @ 14193:dd1b266713ea

8027440: DefNew does not log heap change information when a promotion failure occurs Reviewed-by: tamao, jmasa
author brutisso
date Mon, 16 Dec 2013 13:43:06 +0100
parents 86e6d691f2e1
children 284953caf7aa
comparison
equal deleted inserted replaced
14192:ff355e26c78d 14193:dd1b266713ea
665 665
666 // A successful scavenge should restart the GC time limit count which is 666 // A successful scavenge should restart the GC time limit count which is
667 // for full GC's. 667 // for full GC's.
668 AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy(); 668 AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy();
669 size_policy->reset_gc_overhead_limit_count(); 669 size_policy->reset_gc_overhead_limit_count();
670 if (PrintGC && !PrintGCDetails) {
671 gch->print_heap_change(gch_prev_used);
672 }
673 assert(!gch->incremental_collection_failed(), "Should be clear"); 670 assert(!gch->incremental_collection_failed(), "Should be clear");
674 } else { 671 } else {
675 assert(_promo_failure_scan_stack.is_empty(), "post condition"); 672 assert(_promo_failure_scan_stack.is_empty(), "post condition");
676 _promo_failure_scan_stack.clear(true); // Clear cached segments. 673 _promo_failure_scan_stack.clear(true); // Clear cached segments.
677 674
692 _next_gen->promotion_failure_occurred(); 689 _next_gen->promotion_failure_occurred();
693 gc_tracer.report_promotion_failed(_promotion_failed_info); 690 gc_tracer.report_promotion_failed(_promotion_failed_info);
694 691
695 // Reset the PromotionFailureALot counters. 692 // Reset the PromotionFailureALot counters.
696 NOT_PRODUCT(Universe::heap()->reset_promotion_should_fail();) 693 NOT_PRODUCT(Universe::heap()->reset_promotion_should_fail();)
694 }
695 if (PrintGC && !PrintGCDetails) {
696 gch->print_heap_change(gch_prev_used);
697 } 697 }
698 // set new iteration safe limit for the survivor spaces 698 // set new iteration safe limit for the survivor spaces
699 from()->set_concurrent_iteration_safe_limit(from()->top()); 699 from()->set_concurrent_iteration_safe_limit(from()->top());
700 to()->set_concurrent_iteration_safe_limit(to()->top()); 700 to()->set_concurrent_iteration_safe_limit(to()->top());
701 SpecializationStats::print(); 701 SpecializationStats::print();