8225388: Running jcmd Compiler.CodeHeap_Analytics all 0 cause crash

Reviewed-by: thartmann, sspitsyn
This commit is contained in:
Leonid Mesnik 2019-06-07 12:26:50 -07:00
parent 38204f9c65
commit 8c40b77cd8
10 changed files with 65 additions and 13 deletions

View file

@ -310,7 +310,7 @@ void print_statistics() {
// CodeHeap State Analytics.
// Does also call NMethodSweeper::print(tty)
if (PrintCodeHeapAnalytics) {
CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
CompileBroker::print_heapinfo(NULL, "all", 4096); // details
} else if (PrintMethodFlushingStatistics) {
NMethodSweeper::print(tty);
}
@ -378,7 +378,7 @@ void print_statistics() {
// CodeHeap State Analytics.
// Does also call NMethodSweeper::print(tty)
if (PrintCodeHeapAnalytics) {
CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
CompileBroker::print_heapinfo(NULL, "all", 4096); // details
} else if (PrintMethodFlushingStatistics) {
NMethodSweeper::print(tty);
}