mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8225388: Running jcmd Compiler.CodeHeap_Analytics all 0 cause crash
Reviewed-by: thartmann, sspitsyn
This commit is contained in:
parent
38204f9c65
commit
8c40b77cd8
10 changed files with 65 additions and 13 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue