changeset 1916:2d6b74c9a797

6976378: ParNew: stats are printed unconditionally in debug builds Reviewed-by: tonyp
author jcoomes
date Wed, 11 Aug 2010 13:12:28 -0700
parents a6bff45449bc
children 7fcd5f39bd7a
files src/share/vm/gc_implementation/parNew/parNewGeneration.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp	Tue Aug 10 14:53:35 2010 -0700
+++ b/src/share/vm/gc_implementation/parNew/parNewGeneration.cpp	Wed Aug 11 13:12:28 2010 -0700
@@ -970,8 +970,10 @@
     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());