< prev index next >
src/hotspot/share/code/codeCache.cpp
Print this page
rev 50234 : Print the code cache full count for all code heaps and
add additional counters for compiler stopped and compiler started.
*** 1600,1612 ****
st->print("%s:", heap->name());
} else {
st->print("CodeCache:");
}
st->print_cr(" size=" SIZE_FORMAT "Kb used=" SIZE_FORMAT
! "Kb max_used=" SIZE_FORMAT "Kb free=" SIZE_FORMAT "Kb",
total/K, (total - heap->unallocated_capacity())/K,
! heap->max_allocated_capacity()/K, heap->unallocated_capacity()/K);
if (detailed) {
st->print_cr(" bounds [" INTPTR_FORMAT ", " INTPTR_FORMAT ", " INTPTR_FORMAT "]",
p2i(heap->low_boundary()),
p2i(heap->high()),
--- 1600,1613 ----
st->print("%s:", heap->name());
} else {
st->print("CodeCache:");
}
st->print_cr(" size=" SIZE_FORMAT "Kb used=" SIZE_FORMAT
! "Kb max_used=" SIZE_FORMAT "Kb free=" SIZE_FORMAT "Kb full_count=" UINT32_FORMAT,
total/K, (total - heap->unallocated_capacity())/K,
! heap->max_allocated_capacity()/K, heap->unallocated_capacity()/K,
! get_codemem_full_count(heap->code_blob_type()));
if (detailed) {
st->print_cr(" bounds [" INTPTR_FORMAT ", " INTPTR_FORMAT ", " INTPTR_FORMAT "]",
p2i(heap->low_boundary()),
p2i(heap->high()),
*** 1620,1629 ****
--- 1621,1633 ----
blob_count(), nmethod_count(), adapter_count());
st->print_cr(" compilation: %s", CompileBroker::should_compile_new_jobs() ?
"enabled" : Arguments::mode() == Arguments::_int ?
"disabled (interpreter mode)" :
"disabled (not enough contiguous free space left)");
+ st->print_cr(" stopped_count=" UINT32_FORMAT " restarted_count=" UINT32_FORMAT,
+ CompileBroker::get_total_compiler_stopped_count(),
+ CompileBroker::get_total_compiler_restarted_count());
}
}
void CodeCache::print_codelist(outputStream* st) {
MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
< prev index next >