--- a/hotspot/src/share/vm/opto/output.cpp Sun Mar 06 22:09:23 2011 -0800
+++ b/hotspot/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");