comparison 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
comparison
equal deleted inserted replaced
56:23fd51402e55 57:d6707b806756
1579 while (true) { 1579 while (true) {
1580 { 1580 {
1581 // We need this HandleMark to avoid leaking VM handles. 1581 // We need this HandleMark to avoid leaking VM handles.
1582 HandleMark hm(thread); 1582 HandleMark hm(thread);
1583 1583
1584 if (CodeCache::largest_free_block() < CodeCacheMinimumFreeSpace) { 1584 if (CodeCache::unallocated_capacity() < CodeCacheMinimumFreeSpace) {
1585 // the code cache is really full 1585 // the code cache is really full
1586 handle_full_code_cache(); 1586 handle_full_code_cache();
1587 } else if (UseCodeCacheFlushing && CodeCache::needs_flushing()) { 1587 } else if (UseCodeCacheFlushing && CodeCache::needs_flushing()) {
1588 // Attempt to start cleaning the code cache while there is still a little headroom 1588 // Attempt to start cleaning the code cache while there is still a little headroom
1589 NMethodSweeper::handle_full_code_cache(false); 1589 NMethodSweeper::handle_full_code_cache(false);