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

Wed, 02 Jun 2010 20:15:33 -0700

author
never
date
Wed, 02 Jun 2010 20:15:33 -0700
changeset 1933
ca3dceda776c
parent 1932
852d0157c696
child 1934
e9ff18c4ace7

6930994: Code cache is full warning should be visible in product
Reviewed-by: kvn, twisti, ysr

src/share/vm/compiler/compileBroker.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/compiler/compileBroker.cpp	Wed Jun 02 14:23:23 2010 -0700
     1.2 +++ b/src/share/vm/compiler/compileBroker.cpp	Wed Jun 02 20:15:33 2010 -0700
     1.3 @@ -1651,14 +1651,15 @@
     1.4        log->stamp();
     1.5        log->end_elem();
     1.6      }
     1.7 -  #ifndef PRODUCT
     1.8 -    warning("CodeCache is full. Compiler has been disabled");
     1.9 +    warning("CodeCache is full. Compiler has been disabled.");
    1.10 +    warning("Try increasing the code cache size using -XX:ReservedCodeCacheSize=");
    1.11 +#ifndef PRODUCT
    1.12      if (CompileTheWorld || ExitOnFullCodeCache) {
    1.13        before_exit(JavaThread::current());
    1.14        exit_globals(); // will delete tty
    1.15        vm_direct_exit(CompileTheWorld ? 0 : 1);
    1.16      }
    1.17 -  #endif
    1.18 +#endif
    1.19      if (UseCodeCacheFlushing) {
    1.20        NMethodSweeper::handle_full_code_cache(true);
    1.21      } else {

mercurial