mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8027440: DefNew does not log heap change information when a promotion failure occurs
Reviewed-by: tamao, jmasa
This commit is contained in:
parent
810bc0c558
commit
fd42fb4446
2 changed files with 84 additions and 3 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue