diff src/share/vm/compiler/compileBroker.cpp @ 4517:a7fb14888912

8006952: Slow VM due to excessive code cache freelist iteration Summary: Remove continous free block requirement Reviewed-by: kvn
author neliasso
date Thu, 11 Apr 2013 13:57:44 +0200
parents b84fd7d73702
children 7b23cb975cf2
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Tue Apr 16 10:04:01 2013 -0700
+++ b/src/share/vm/compiler/compileBroker.cpp	Thu Apr 11 13:57:44 2013 +0200
@@ -1581,7 +1581,7 @@
       // We need this HandleMark to avoid leaking VM handles.
       HandleMark hm(thread);
 
-      if (CodeCache::largest_free_block() < CodeCacheMinimumFreeSpace) {
+      if (CodeCache::unallocated_capacity() < CodeCacheMinimumFreeSpace) {
         // the code cache is really full
         handle_full_code_cache();
       } else if (UseCodeCacheFlushing && CodeCache::needs_flushing()) {