--- 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();
}
}