1.1 --- a/src/share/vm/code/codeCache.cpp Sun Mar 06 22:09:23 2011 -0800 1.2 +++ b/src/share/vm/code/codeCache.cpp Wed Mar 09 09:15:16 2011 -0800 1.3 @@ -939,9 +939,16 @@ 1.4 _heap->high(), 1.5 _heap->high_boundary()); 1.6 st->print_cr(" total_blobs=" UINT32_FORMAT " nmethods=" UINT32_FORMAT 1.7 - " adapters=" UINT32_FORMAT " free_code_cache=" SIZE_FORMAT 1.8 + " adapters=" UINT32_FORMAT " free_code_cache=" SIZE_FORMAT "Kb" 1.9 " largest_free_block=" SIZE_FORMAT, 1.10 - CodeCache::nof_blobs(), CodeCache::nof_nmethods(), 1.11 - CodeCache::nof_adapters(), CodeCache::unallocated_capacity(), 1.12 - CodeCache::largest_free_block()); 1.13 + nof_blobs(), nof_nmethods(), nof_adapters(), 1.14 + unallocated_capacity()/K, largest_free_block()); 1.15 } 1.16 + 1.17 +void CodeCache::log_state(outputStream* st) { 1.18 + st->print(" total_blobs='" UINT32_FORMAT "' nmethods='" UINT32_FORMAT "'" 1.19 + " adapters='" UINT32_FORMAT "' free_code_cache='" SIZE_FORMAT "'" 1.20 + " largest_free_block='" SIZE_FORMAT "'", 1.21 + nof_blobs(), nof_nmethods(), nof_adapters(), 1.22 + unallocated_capacity(), largest_free_block()); 1.23 +}