< prev index next >
src/share/vm/runtime/java.cpp
Print this page
@@ -33,10 +33,11 @@
#include "interpreter/bytecodeHistogram.hpp"
#if INCLUDE_JVMCI
#include "jvmci/jvmciCompiler.hpp"
#include "jvmci/jvmciRuntime.hpp"
#endif
+#include "logging/log.hpp"
#include "memory/oopFactory.hpp"
#include "memory/universe.hpp"
#include "oops/constantPool.hpp"
#include "oops/generateOopMap.hpp"
#include "oops/instanceKlass.hpp"
@@ -450,17 +451,19 @@
// Stop concurrent GC threads
Universe::heap()->stop();
// Print GC/heap related information.
- if (PrintGCDetails) {
- Universe::print();
- AdaptiveSizePolicyOutput(0);
- if (Verbose) {
- ClassLoaderDataGraph::dump_on(gclog_or_tty);
+ LogHandle(gc, heap, exit) log;
+ if (log.is_info()) {
+ ResourceMark rm;
+ Universe::print_on(log.info_stream());
+ if (log.is_trace()) {
+ ClassLoaderDataGraph::dump_on(log.trace_stream());
}
}
+ AdaptiveSizePolicyOutput::print();
if (PrintBytecodeHistogram) {
BytecodeHistogram::print();
}
< prev index next >