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 |