< prev index next >

src/share/vm/runtime/sweeper.cpp

Print this page
rev 13113 : imported patch 8181917-refactor-ul-logstream

@@ -26,10 +26,12 @@
 #include "code/codeCache.hpp"
 #include "code/compiledIC.hpp"
 #include "code/icBuffer.hpp"
 #include "code/nmethod.hpp"
 #include "compiler/compileBroker.hpp"
+#include "logging/log.hpp"
+#include "logging/logStream.hpp"
 #include "memory/resourceArea.hpp"
 #include "oops/method.hpp"
 #include "runtime/atomic.hpp"
 #include "runtime/compilationPolicy.hpp"
 #include "runtime/mutexLocker.hpp"

@@ -502,11 +504,12 @@
   }
 #endif
 
   Log(codecache, sweep) log;
   if (log.is_debug()) {
-    CodeCache::print_summary(log.debug_stream(), false);
+    LogStream ls(log.debug());
+    CodeCache::print_summary(&ls, false);
   }
   log_sweep("finished");
 
   // Sweeper is the only case where memory is released, check here if it
   // is time to restart the compiler. Only checking if there is a certain
< prev index next >