< prev index next >
src/hotspot/share/runtime/java.cpp
Print this page
@@ -233,10 +233,15 @@
if (CITime) {
CompileBroker::print_times();
}
+ // 8198691: CodeHeap State Analytics.
+ if (PrintCodeHeapState) {
+ CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
+ }
+
#ifdef COMPILER1
if ((PrintC1Statistics || LogVMOutput || LogCompilation) && UseCompiler) {
FlagSetting fs(DisplayVMOutput, DisplayVMOutput && PrintC1Statistics);
Runtime1::print_statistics();
Deoptimization::print_statistics();
@@ -314,12 +319,12 @@
if (PrintCodeCache) {
MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
CodeCache::print();
}
- if (PrintMethodFlushingStatistics) {
- NMethodSweeper::print();
+ if (PrintMethodFlushingStatistics && !PrintCodeHeapState) {
+ NMethodSweeper::print(tty);
}
if (PrintCodeCache2) {
MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
CodeCache::print_internals();
@@ -375,12 +380,17 @@
if (PrintCodeCache) {
MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
CodeCache::print();
}
- if (PrintMethodFlushingStatistics) {
- NMethodSweeper::print();
+ if (PrintMethodFlushingStatistics && !PrintCodeHeapState) {
+ NMethodSweeper::print(tty);
+ }
+
+ // 8198691: CodeHeap State Analytics.
+ if (PrintCodeHeapState) {
+ CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
}
#ifdef COMPILER2
if (PrintPreciseBiasedLockingStatistics || PrintPreciseRTMLockingStatistics) {
OptoRuntime::print_named_counters();
< prev index next >