src/share/vm/compiler/compileBroker.cpp

changeset 2083
a62d332029cf
parent 2047
d2ede61b7a12
child 2103
3e8fbc61cee8
equal deleted inserted replaced
2082:da877bdc9000 2083:a62d332029cf
1650 // The CodeCache is full. Print out warning and disable compilation or 1650 // The CodeCache is full. Print out warning and disable compilation or
1651 // try code cache cleaning so compilation can continue later. 1651 // try code cache cleaning so compilation can continue later.
1652 void CompileBroker::handle_full_code_cache() { 1652 void CompileBroker::handle_full_code_cache() {
1653 UseInterpreter = true; 1653 UseInterpreter = true;
1654 if (UseCompiler || AlwaysCompileLoopMethods ) { 1654 if (UseCompiler || AlwaysCompileLoopMethods ) {
1655 CompilerThread* thread = CompilerThread::current(); 1655 if (xtty != NULL) {
1656 CompileLog* log = thread->log(); 1656 xtty->begin_elem("code_cache_full");
1657 if (log != NULL) { 1657 xtty->stamp();
1658 log->begin_elem("code_cache_full"); 1658 xtty->end_elem();
1659 log->stamp();
1660 log->end_elem();
1661 } 1659 }
1662 warning("CodeCache is full. Compiler has been disabled."); 1660 warning("CodeCache is full. Compiler has been disabled.");
1663 warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize="); 1661 warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize=");
1664 #ifndef PRODUCT 1662 #ifndef PRODUCT
1665 if (CompileTheWorld || ExitOnFullCodeCache) { 1663 if (CompileTheWorld || ExitOnFullCodeCache) {

mercurial