提交 86c00caa 编写于 作者: N never

6930994: Code cache is full warning should be visible in product

Reviewed-by: kvn, twisti, ysr
上级 aeb2371c
...@@ -1651,14 +1651,15 @@ void CompileBroker::handle_full_code_cache() { ...@@ -1651,14 +1651,15 @@ void CompileBroker::handle_full_code_cache() {
log->stamp(); log->stamp();
log->end_elem(); log->end_elem();
} }
#ifndef PRODUCT warning("CodeCache is full. Compiler has been disabled.");
warning("CodeCache is full. Compiler has been disabled"); warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize=");
#ifndef PRODUCT
if (CompileTheWorld || ExitOnFullCodeCache) { if (CompileTheWorld || ExitOnFullCodeCache) {
before_exit(JavaThread::current()); before_exit(JavaThread::current());
exit_globals(); // will delete tty exit_globals(); // will delete tty
vm_direct_exit(CompileTheWorld ? 0 : 1); vm_direct_exit(CompileTheWorld ? 0 : 1);
} }
#endif #endif
if (UseCodeCacheFlushing) { if (UseCodeCacheFlushing) {
NMethodSweeper::handle_full_code_cache(true); NMethodSweeper::handle_full_code_cache(true);
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册