6976378: ParNew: stats are printed unconditionally in debug builds

Reviewed-by: tonyp
This commit is contained in:
John Coomes 2010-08-11 13:12:28 -07:00
parent 7ee29eeb6a
commit bb7d4b2b35

View File

@ -970,8 +970,10 @@ void ParNewGeneration::collect(bool full,
gch->print_heap_change(gch_prev_used);
}
TASKQUEUE_STATS_ONLY(thread_state_set.print_termination_stats());
TASKQUEUE_STATS_ONLY(thread_state_set.print_taskqueue_stats());
if (PrintGCDetails && ParallelGCVerbose) {
TASKQUEUE_STATS_ONLY(thread_state_set.print_termination_stats());
TASKQUEUE_STATS_ONLY(thread_state_set.print_taskqueue_stats());
}
if (UseAdaptiveSizePolicy) {
size_policy->minor_collection_end(gch->gc_cause());