hotspot/src/share/vm/gc/shared/collectedHeap.cpp
changeset 46701 f559541c0daa
parent 46683 33808f7eadd5
child 46968 9119841280f4
--- a/hotspot/src/share/vm/gc/shared/collectedHeap.cpp	Thu Jul 20 17:23:24 2017 -0700
+++ b/hotspot/src/share/vm/gc/shared/collectedHeap.cpp	Fri Jul 21 09:50:12 2017 +0200
@@ -594,11 +594,12 @@
     HeapDumper::dump_heap();
   }
 
-  Log(gc, classhisto) log;
-  if (log.is_trace()) {
+  LogTarget(Trace, gc, classhisto) lt;
+  if (lt.is_enabled()) {
     GCTraceTime(Trace, gc, classhisto) tm(before ? "Class Histogram (before full gc)" : "Class Histogram (after full gc)", timer);
     ResourceMark rm;
-    VM_GC_HeapInspection inspector(log.trace_stream(), false /* ! full gc */);
+    LogStream ls(lt);
+    VM_GC_HeapInspection inspector(&ls, false /* ! full gc */);
     inspector.doit();
   }
 }