comparison 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
comparison
equal deleted inserted replaced
2352:425688247f3d 2353:1c0cf339481b
1026 1026
1027 1027
1028 1028
1029 // helper for Fill_buffer bailout logic 1029 // helper for Fill_buffer bailout logic
1030 static void turn_off_compiler(Compile* C) { 1030 static void turn_off_compiler(Compile* C) {
1031 if (CodeCache::unallocated_capacity() >= CodeCacheMinimumFreeSpace*10) { 1031 if (CodeCache::largest_free_block() >= CodeCacheMinimumFreeSpace*10) {
1032 // Do not turn off compilation if a single giant method has 1032 // Do not turn off compilation if a single giant method has
1033 // blown the code cache size. 1033 // blown the code cache size.
1034 C->record_failure("excessive request to CodeCache"); 1034 C->record_failure("excessive request to CodeCache");
1035 } else { 1035 } else {
1036 // Let CompilerBroker disable further compilations. 1036 // Let CompilerBroker disable further compilations.