Mercurial > hg > truffle
diff src/share/vm/opto/output.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 | 1d1603768966 e6beb62de02d |
line wrap: on
line diff
--- a/src/share/vm/opto/output.cpp Sun Mar 06 22:09:23 2011 -0800 +++ b/src/share/vm/opto/output.cpp Wed Mar 09 09:15:16 2011 -0800 @@ -1028,7 +1028,7 @@ // helper for Fill_buffer bailout logic static void turn_off_compiler(Compile* C) { - if (CodeCache::unallocated_capacity() >= CodeCacheMinimumFreeSpace*10) { + if (CodeCache::largest_free_block() >= CodeCacheMinimumFreeSpace*10) { // Do not turn off compilation if a single giant method has // blown the code cache size. C->record_failure("excessive request to CodeCache");