1649 if (log != NULL) { |
1649 if (log != NULL) { |
1650 log->begin_elem("code_cache_full"); |
1650 log->begin_elem("code_cache_full"); |
1651 log->stamp(); |
1651 log->stamp(); |
1652 log->end_elem(); |
1652 log->end_elem(); |
1653 } |
1653 } |
1654 #ifndef PRODUCT |
1654 warning("CodeCache is full. Compiler has been disabled."); |
1655 warning("CodeCache is full. Compiler has been disabled"); |
1655 warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize="); |
|
1656 #ifndef PRODUCT |
1656 if (CompileTheWorld || ExitOnFullCodeCache) { |
1657 if (CompileTheWorld || ExitOnFullCodeCache) { |
1657 before_exit(JavaThread::current()); |
1658 before_exit(JavaThread::current()); |
1658 exit_globals(); // will delete tty |
1659 exit_globals(); // will delete tty |
1659 vm_direct_exit(CompileTheWorld ? 0 : 1); |
1660 vm_direct_exit(CompileTheWorld ? 0 : 1); |
1660 } |
1661 } |
1661 #endif |
1662 #endif |
1662 if (UseCodeCacheFlushing) { |
1663 if (UseCodeCacheFlushing) { |
1663 NMethodSweeper::handle_full_code_cache(true); |
1664 NMethodSweeper::handle_full_code_cache(true); |
1664 } else { |
1665 } else { |
1665 UseCompiler = false; |
1666 UseCompiler = false; |
1666 AlwaysCompileLoopMethods = false; |
1667 AlwaysCompileLoopMethods = false; |