8151693: Move print_heap_before/after_gc to debug level
authorsjohanss
Mon, 14 Mar 2016 09:10:42 +0100
changeset 37084 53be04adfdd3
parent 37083 8776e46aa542
child 37085 53ccf09a724f
8151693: Move print_heap_before/after_gc to debug level Reviewed-by: brutisso, jwilhelm
hotspot/src/share/vm/memory/universe.cpp
--- a/hotspot/src/share/vm/memory/universe.cpp	Sun Mar 13 19:41:11 2016 +0000
+++ b/hotspot/src/share/vm/memory/universe.cpp	Mon Mar 14 09:10:42 2016 +0100
@@ -1093,19 +1093,19 @@
 
 void Universe::print_heap_before_gc() {
   LogHandle(gc, heap) log;
-  if (log.is_trace()) {
-    log.trace("Heap before GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections());
+  if (log.is_debug()) {
+    log.debug("Heap before GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections());
     ResourceMark rm;
-    heap()->print_on(log.trace_stream());
+    heap()->print_on(log.debug_stream());
   }
 }
 
 void Universe::print_heap_after_gc() {
   LogHandle(gc, heap) log;
-  if (log.is_trace()) {
-    log.trace("Heap after GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections());
+  if (log.is_debug()) {
+    log.debug("Heap after GC invocations=%u (full %u):", heap()->total_collections(), heap()->total_full_collections());
     ResourceMark rm;
-    heap()->print_on(log.trace_stream());
+    heap()->print_on(log.debug_stream());
   }
 }