Mercurial > hg > graal-jvmci-8
diff src/share/vm/code/codeCache.hpp @ 2457:527977d4f740
7033779: CodeCache::largest_free_block may need to hold the CodeCache lock
Reviewed-by: kvn
author | never |
---|---|
date | Tue, 05 Apr 2011 19:16:52 -0700 |
parents | d673ef06fe96 |
children | 6c97c830fb6f |
line wrap: on
line diff
--- a/src/share/vm/code/codeCache.hpp Tue Apr 05 02:31:46 2011 -0700 +++ b/src/share/vm/code/codeCache.hpp Tue Apr 05 19:16:52 2011 -0700 @@ -160,7 +160,7 @@ static size_t capacity() { return _heap->capacity(); } static size_t max_capacity() { return _heap->max_capacity(); } static size_t unallocated_capacity() { return _heap->unallocated_capacity(); } - static size_t largest_free_block() { return _heap->largest_free_block(); } + static size_t largest_free_block(); static bool needs_flushing() { return largest_free_block() < CodeCacheFlushingMinimumFreeSpace; } static bool needs_cache_clean() { return _needs_cache_clean; }