diff --git a/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp b/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp index 45683b175727077e38a48c39acc2b46e6cdc23f8..e31e2854664a305b6dd553ff440e2b13edffbdba 100644 --- a/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp +++ b/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp @@ -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());