comparison src/share/vm/code/codeCache.hpp @ 2091:51bd2d261853

7008325: CodeCache exhausted on sparc starting from hs20b04 Summary: remove clear_scratch_buffer_blob and let init_scratch_buffer_blob free and allocate a new blob if required. Reviewed-by: twisti
author kvn
date Wed, 29 Dec 2010 10:41:43 -0800
parents f95d63e2154a
children 1c0cf339481b
comparison
equal deleted inserted replaced
2090:2ddb2fab82cb 2091:51bd2d261853
156 static address first_address(); // first address used for CodeBlobs 156 static address first_address(); // first address used for CodeBlobs
157 static address last_address(); // last address used for CodeBlobs 157 static address last_address(); // last address used for CodeBlobs
158 static size_t capacity() { return _heap->capacity(); } 158 static size_t capacity() { return _heap->capacity(); }
159 static size_t max_capacity() { return _heap->max_capacity(); } 159 static size_t max_capacity() { return _heap->max_capacity(); }
160 static size_t unallocated_capacity() { return _heap->unallocated_capacity(); } 160 static size_t unallocated_capacity() { return _heap->unallocated_capacity(); }
161 static size_t largest_free_block() { return _heap->largest_free_block(); }
161 static bool needs_flushing() { return unallocated_capacity() < CodeCacheFlushingMinimumFreeSpace; } 162 static bool needs_flushing() { return unallocated_capacity() < CodeCacheFlushingMinimumFreeSpace; }
162 163
163 static bool needs_cache_clean() { return _needs_cache_clean; } 164 static bool needs_cache_clean() { return _needs_cache_clean; }
164 static void set_needs_cache_clean(bool v) { _needs_cache_clean = v; } 165 static void set_needs_cache_clean(bool v) { _needs_cache_clean = v; }
165 static void clear_inline_caches(); // clear all inline caches 166 static void clear_inline_caches(); // clear all inline caches