mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8145092: Use Unified Logging for the GC logging
JEP-271. VM changes contributed by brutisso, test changes contributed by david. Co-authored-by: David Lindholm <david.lindholm@oralce.com> Reviewed-by: sjohanss, david, brutisso
This commit is contained in:
parent
581eb19018
commit
ffeb0bdad0
200 changed files with 3331 additions and 6147 deletions
|
@ -35,6 +35,7 @@
|
|||
#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"
|
||||
|
@ -453,13 +454,15 @@ void before_exit(JavaThread * thread) {
|
|||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue