mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
8139134: Wrong tenuring threshold in young GC trace event
Reviewed-by: ehelin, jwilhelm
This commit is contained in:
parent
56d0ec1e1a
commit
3f29249aee
3 changed files with 5 additions and 3 deletions
|
@ -968,6 +968,8 @@ void ParNewGeneration::collect(bool full,
|
||||||
_gc_timer);
|
_gc_timer);
|
||||||
}
|
}
|
||||||
_gc_tracer.report_gc_reference_stats(stats);
|
_gc_tracer.report_gc_reference_stats(stats);
|
||||||
|
_gc_tracer.report_tenuring_threshold(tenuring_threshold());
|
||||||
|
|
||||||
if (!promotion_failed()) {
|
if (!promotion_failed()) {
|
||||||
// Swap the survivor spaces.
|
// Swap the survivor spaces.
|
||||||
eden()->clear(SpaceDecorator::Mangle);
|
eden()->clear(SpaceDecorator::Mangle);
|
||||||
|
@ -1030,7 +1032,6 @@ void ParNewGeneration::collect(bool full,
|
||||||
rp->verify_no_references_recorded();
|
rp->verify_no_references_recorded();
|
||||||
|
|
||||||
gch->trace_heap_after_gc(gc_tracer());
|
gch->trace_heap_after_gc(gc_tracer());
|
||||||
_gc_tracer.report_tenuring_threshold(tenuring_threshold());
|
|
||||||
|
|
||||||
_gc_timer->register_gc_end();
|
_gc_timer->register_gc_end();
|
||||||
|
|
||||||
|
|
|
@ -475,6 +475,8 @@ bool PSScavenge::invoke_no_policy() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_gc_tracer.report_tenuring_threshold(tenuring_threshold());
|
||||||
|
|
||||||
// Let the size policy know we're done. Note that we count promotion
|
// Let the size policy know we're done. Note that we count promotion
|
||||||
// failure cleanup time as part of the collection (otherwise, we're
|
// failure cleanup time as part of the collection (otherwise, we're
|
||||||
// implicitly saying it's mutator time).
|
// implicitly saying it's mutator time).
|
||||||
|
@ -674,7 +676,6 @@ bool PSScavenge::invoke_no_policy() {
|
||||||
|
|
||||||
heap->print_heap_after_gc();
|
heap->print_heap_after_gc();
|
||||||
heap->trace_heap_after_gc(&_gc_tracer);
|
heap->trace_heap_after_gc(&_gc_tracer);
|
||||||
_gc_tracer.report_tenuring_threshold(tenuring_threshold());
|
|
||||||
|
|
||||||
if (ZapUnusedHeapArea) {
|
if (ZapUnusedHeapArea) {
|
||||||
young_gen->eden_space()->check_mangled_unused_area_complete();
|
young_gen->eden_space()->check_mangled_unused_area_complete();
|
||||||
|
|
|
@ -648,6 +648,7 @@ void DefNewGeneration::collect(bool full,
|
||||||
rp->process_discovered_references(&is_alive, &keep_alive, &evacuate_followers,
|
rp->process_discovered_references(&is_alive, &keep_alive, &evacuate_followers,
|
||||||
NULL, _gc_timer);
|
NULL, _gc_timer);
|
||||||
gc_tracer.report_gc_reference_stats(stats);
|
gc_tracer.report_gc_reference_stats(stats);
|
||||||
|
gc_tracer.report_tenuring_threshold(tenuring_threshold());
|
||||||
|
|
||||||
if (!_promotion_failed) {
|
if (!_promotion_failed) {
|
||||||
// Swap the survivor spaces.
|
// Swap the survivor spaces.
|
||||||
|
@ -712,7 +713,6 @@ void DefNewGeneration::collect(bool full,
|
||||||
update_time_of_last_gc(now);
|
update_time_of_last_gc(now);
|
||||||
|
|
||||||
gch->trace_heap_after_gc(&gc_tracer);
|
gch->trace_heap_after_gc(&gc_tracer);
|
||||||
gc_tracer.report_tenuring_threshold(tenuring_threshold());
|
|
||||||
|
|
||||||
_gc_timer->register_gc_end();
|
_gc_timer->register_gc_end();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue