hotspot/src/share/vm/ci/ciEnv.cpp
changeset 4764 d15bb22d4d39
parent 4761 bdb7375a1fee
parent 4750 71fd601907dc
child 5124 9dd40e895ad1
--- a/hotspot/src/share/vm/ci/ciEnv.cpp	Tue Feb 02 11:08:17 2010 -0700
+++ b/hotspot/src/share/vm/ci/ciEnv.cpp	Thu Feb 04 15:50:59 2010 -0800
@@ -962,18 +962,10 @@
     if (nm == NULL) {
       // The CodeCache is full.  Print out warning and disable compilation.
       record_failure("code cache is full");
-      UseInterpreter = true;
-      if (UseCompiler || AlwaysCompileLoopMethods ) {
-#ifndef PRODUCT
-        warning("CodeCache is full. Compiler has been disabled");
-        if (CompileTheWorld || ExitOnFullCodeCache) {
-          before_exit(JavaThread::current());
-          exit_globals(); // will delete tty
-          vm_direct_exit(CompileTheWorld ? 0 : 1);
-        }
-#endif
-        UseCompiler               = false;
-        AlwaysCompileLoopMethods  = false;
+      {
+        MutexUnlocker ml(Compile_lock);
+        MutexUnlocker locker(MethodCompileQueue_lock);
+        CompileBroker::handle_full_code_cache();
       }
     } else {
       NOT_PRODUCT(nm->set_has_debug_info(has_debug_info); )