8139134: Wrong tenuring threshold in young GC trace event

Reviewed-by: ehelin, jwilhelm
This commit is contained in:
Carsten Varming 2015-10-08 12:47:17 +02:00 committed by Erik Helin
parent 56d0ec1e1a
commit 3f29249aee
3 changed files with 5 additions and 3 deletions

View file

@ -648,6 +648,7 @@ void DefNewGeneration::collect(bool full,
rp->process_discovered_references(&is_alive, &keep_alive, &evacuate_followers,
NULL, _gc_timer);
gc_tracer.report_gc_reference_stats(stats);
gc_tracer.report_tenuring_threshold(tenuring_threshold());
if (!_promotion_failed) {
// Swap the survivor spaces.
@ -712,7 +713,6 @@ void DefNewGeneration::collect(bool full,
update_time_of_last_gc(now);
gch->trace_heap_after_gc(&gc_tracer);
gc_tracer.report_tenuring_threshold(tenuring_threshold());
_gc_timer->register_gc_end();