hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 17016 78b1c3670525
parent 16689 efce070b8d42
child 17123 a8e62eed2e3e
equal deleted inserted replaced
17015:92390f57e8b1 17016:78b1c3670525
  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);