OpenJDK / amber / amber
changeset 5701:bb5bb5d5e19f
6930994: Code cache is full warning should be visible in product
Reviewed-by: kvn, twisti, ysr
author | never |
---|---|
date | Wed, 02 Jun 2010 20:15:33 -0700 |
parents | a78767273dc1 |
children | 201c5cde25bb |
files | hotspot/src/share/vm/compiler/compileBroker.cpp |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp Wed Jun 02 14:23:23 2010 -0700 +++ b/hotspot/src/share/vm/compiler/compileBroker.cpp Wed Jun 02 20:15:33 2010 -0700 @@ -1651,14 +1651,15 @@ log->stamp(); 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) { before_exit(JavaThread::current()); exit_globals(); // will delete tty vm_direct_exit(CompileTheWorld ? 0 : 1); } - #endif +#endif if (UseCodeCacheFlushing) { NMethodSweeper::handle_full_code_cache(true); } else {