hotspot/src/share/vm/opto/output.cpp
changeset 8672 26a427ab6f32
parent 7715 12998f95a334
child 9175 80221fe09772
child 8921 14bfe81f2a9d
--- 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");