8027440: DefNew does not log heap change information when a promotion failure occurs

Reviewed-by: tamao, jmasa
This commit is contained in:
Bengt Rutisson 2013-12-16 13:43:06 +01:00
parent 810bc0c558
commit fd42fb4446
2 changed files with 84 additions and 3 deletions

View file

@ -667,9 +667,6 @@ void DefNewGeneration::collect(bool full,
// for full GC's.
AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy();
size_policy->reset_gc_overhead_limit_count();
if (PrintGC && !PrintGCDetails) {
gch->print_heap_change(gch_prev_used);
}
assert(!gch->incremental_collection_failed(), "Should be clear");
} else {
assert(_promo_failure_scan_stack.is_empty(), "post condition");
@ -695,6 +692,9 @@ void DefNewGeneration::collect(bool full,
// Reset the PromotionFailureALot counters.
NOT_PRODUCT(Universe::heap()->reset_promotion_should_fail();)
}
if (PrintGC && !PrintGCDetails) {
gch->print_heap_change(gch_prev_used);
}
// set new iteration safe limit for the survivor spaces
from()->set_concurrent_iteration_safe_limit(from()->top());
to()->set_concurrent_iteration_safe_limit(to()->top());