--- old/src/share/vm/opto/output.cpp Tue Mar 8 15:42:15 2011 +++ new/src/share/vm/opto/output.cpp Tue Mar 8 15:42:15 2011 @@ -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");