src/share/vm/compiler/compileBroker.cpp

changeset 4952
a7fb14888912
parent 4908
b84fd7d73702
child 5029
7b23cb975cf2
equal deleted inserted replaced
4951:4b2eebe03f93 4952:a7fb14888912
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);

mercurial