comparison src/share/vm/compiler/compileBroker.cpp @ 2482:dbccacb79c63

7036236: VM crashes assert((!inside_attrs()) || is_error_reported()) failed ... Summary: Eliminate the race condition. Reviewed-by: kvn
author iveresov
date Thu, 14 Apr 2011 00:02:21 -0700
parents e863062e521d
children 0654ee04b214 86ebb26bcdeb
comparison
equal deleted inserted replaced
2481:3a808be061ff 2482:dbccacb79c63
1734 // try code cache cleaning so compilation can continue later. 1734 // try code cache cleaning so compilation can continue later.
1735 void CompileBroker::handle_full_code_cache() { 1735 void CompileBroker::handle_full_code_cache() {
1736 UseInterpreter = true; 1736 UseInterpreter = true;
1737 if (UseCompiler || AlwaysCompileLoopMethods ) { 1737 if (UseCompiler || AlwaysCompileLoopMethods ) {
1738 if (xtty != NULL) { 1738 if (xtty != NULL) {
1739 stringStream s;
1740 // Dump code cache state into a buffer before locking the tty,
1741 // because log_state() will use locks causing lock conflicts.
1742 CodeCache::log_state(&s);
1743 // Lock to prevent tearing
1744 ttyLocker ttyl;
1739 xtty->begin_elem("code_cache_full"); 1745 xtty->begin_elem("code_cache_full");
1740 CodeCache::log_state(xtty); 1746 xtty->print(s.as_string());
1741 xtty->stamp(); 1747 xtty->stamp();
1742 xtty->end_elem(); 1748 xtty->end_elem();
1743 } 1749 }
1744 warning("CodeCache is full. Compiler has been disabled."); 1750 warning("CodeCache is full. Compiler has been disabled.");
1745 warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize="); 1751 warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize=");