equal
deleted
inserted
replaced
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); |