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

@ -1284,7 +1284,7 @@ void CodeCache::report_codemem_full(int code_blob_type, bool print) {
if (heap->full_count() == 0) {
if (PrintCodeHeapAnalytics) {
CompileBroker::print_heapinfo(tty, "all", "4096"); // details, may be a lot!
CompileBroker::print_heapinfo(tty, "all", 4096); // details, may be a lot!
}
}
}
@ -1571,7 +1571,7 @@ void CodeCache::log_state(outputStream* st) {
//---< BEGIN >--- CodeHeap State Analytics.
void CodeCache::aggregate(outputStream *out, const char* granularity) {
void CodeCache::aggregate(outputStream *out, size_t granularity) {
FOR_ALL_ALLOCABLE_HEAPS(heap) {
CodeHeapState::aggregate(out, (*heap), granularity);
}