Mercurial > hg > truffle
comparison src/share/vm/code/codeCache.cpp @ 2353:1c0cf339481b
7025742: Can not use CodeCache::unallocated_capacity() with fragmented CodeCache
Summary: Use largest_free_block() instead of unallocated_capacity().
Reviewed-by: iveresov, never, ysr
author | kvn |
---|---|
date | Wed, 09 Mar 2011 09:15:16 -0800 |
parents | 51bd2d261853 |
children | d673ef06fe96 |
comparison
equal
deleted
inserted
replaced
2352:425688247f3d | 2353:1c0cf339481b |
---|---|
937 st->print_cr("Code Cache [" INTPTR_FORMAT ", " INTPTR_FORMAT ", " INTPTR_FORMAT ")", | 937 st->print_cr("Code Cache [" INTPTR_FORMAT ", " INTPTR_FORMAT ", " INTPTR_FORMAT ")", |
938 _heap->low_boundary(), | 938 _heap->low_boundary(), |
939 _heap->high(), | 939 _heap->high(), |
940 _heap->high_boundary()); | 940 _heap->high_boundary()); |
941 st->print_cr(" total_blobs=" UINT32_FORMAT " nmethods=" UINT32_FORMAT | 941 st->print_cr(" total_blobs=" UINT32_FORMAT " nmethods=" UINT32_FORMAT |
942 " adapters=" UINT32_FORMAT " free_code_cache=" SIZE_FORMAT | 942 " adapters=" UINT32_FORMAT " free_code_cache=" SIZE_FORMAT "Kb" |
943 " largest_free_block=" SIZE_FORMAT, | 943 " largest_free_block=" SIZE_FORMAT, |
944 CodeCache::nof_blobs(), CodeCache::nof_nmethods(), | 944 nof_blobs(), nof_nmethods(), nof_adapters(), |
945 CodeCache::nof_adapters(), CodeCache::unallocated_capacity(), | 945 unallocated_capacity()/K, largest_free_block()); |
946 CodeCache::largest_free_block()); | 946 } |
947 } | 947 |
948 void CodeCache::log_state(outputStream* st) { | |
949 st->print(" total_blobs='" UINT32_FORMAT "' nmethods='" UINT32_FORMAT "'" | |
950 " adapters='" UINT32_FORMAT "' free_code_cache='" SIZE_FORMAT "'" | |
951 " largest_free_block='" SIZE_FORMAT "'", | |
952 nof_blobs(), nof_nmethods(), nof_adapters(), | |
953 unallocated_capacity(), largest_free_block()); | |
954 } |