Mercurial > hg > graal-jvmci-8
comparison src/share/vm/code/codeCache.hpp @ 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 |
---|---|
145 static void print() PRODUCT_RETURN; // prints summary | 145 static void print() PRODUCT_RETURN; // prints summary |
146 static void print_internals(); | 146 static void print_internals(); |
147 static void verify(); // verifies the code cache | 147 static void verify(); // verifies the code cache |
148 static void print_trace(const char* event, CodeBlob* cb, int size = 0) PRODUCT_RETURN; | 148 static void print_trace(const char* event, CodeBlob* cb, int size = 0) PRODUCT_RETURN; |
149 static void print_bounds(outputStream* st); // Prints a summary of the bounds of the code cache | 149 static void print_bounds(outputStream* st); // Prints a summary of the bounds of the code cache |
150 static void log_state(outputStream* st); | |
150 | 151 |
151 // The full limits of the codeCache | 152 // The full limits of the codeCache |
152 static address low_bound() { return (address) _heap->low_boundary(); } | 153 static address low_bound() { return (address) _heap->low_boundary(); } |
153 static address high_bound() { return (address) _heap->high_boundary(); } | 154 static address high_bound() { return (address) _heap->high_boundary(); } |
154 | 155 |
157 static address last_address(); // last address used for CodeBlobs | 158 static address last_address(); // last address used for CodeBlobs |
158 static size_t capacity() { return _heap->capacity(); } | 159 static size_t capacity() { return _heap->capacity(); } |
159 static size_t max_capacity() { return _heap->max_capacity(); } | 160 static size_t max_capacity() { return _heap->max_capacity(); } |
160 static size_t unallocated_capacity() { return _heap->unallocated_capacity(); } | 161 static size_t unallocated_capacity() { return _heap->unallocated_capacity(); } |
161 static size_t largest_free_block() { return _heap->largest_free_block(); } | 162 static size_t largest_free_block() { return _heap->largest_free_block(); } |
162 static bool needs_flushing() { return unallocated_capacity() < CodeCacheFlushingMinimumFreeSpace; } | 163 static bool needs_flushing() { return largest_free_block() < CodeCacheFlushingMinimumFreeSpace; } |
163 | 164 |
164 static bool needs_cache_clean() { return _needs_cache_clean; } | 165 static bool needs_cache_clean() { return _needs_cache_clean; } |
165 static void set_needs_cache_clean(bool v) { _needs_cache_clean = v; } | 166 static void set_needs_cache_clean(bool v) { _needs_cache_clean = v; } |
166 static void clear_inline_caches(); // clear all inline caches | 167 static void clear_inline_caches(); // clear all inline caches |
167 | 168 |