--- a/src/hotspot/share/runtime/java.cpp Mon Mar 26 08:17:56 2018 -0400
+++ b/src/hotspot/share/runtime/java.cpp Mon Mar 26 12:59:45 2018 -0700
@@ -316,8 +316,13 @@
CodeCache::print();
}
- if (PrintMethodFlushingStatistics) {
- NMethodSweeper::print();
+ // CodeHeap State Analytics.
+ // Does also call NMethodSweeper::print(tty)
+ LogTarget(Trace, codecache) lt;
+ if (lt.is_enabled()) {
+ CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
+ } else if (PrintMethodFlushingStatistics) {
+ NMethodSweeper::print(tty);
}
if (PrintCodeCache2) {
@@ -379,8 +384,13 @@
CodeCache::print();
}
- if (PrintMethodFlushingStatistics) {
- NMethodSweeper::print();
+ // CodeHeap State Analytics.
+ // Does also call NMethodSweeper::print(tty)
+ LogTarget(Trace, codecache) lt;
+ if (lt.is_enabled()) {
+ CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
+ } else if (PrintMethodFlushingStatistics) {
+ NMethodSweeper::print(tty);
}
#ifdef COMPILER2