diff src/share/vm/compiler/compileBroker.cpp @ 13016:a196f1aaec86

8026949: -Xint flag prints wrong warning: Initialization of C1 thread failed (no space to run compilers) Summary: Exit compiler threads early during startup so that wrong error message is not printed Reviewed-by: iveresov, twisti
author anoll
date Fri, 25 Oct 2013 22:57:13 +0200
parents 8b4bbba322d3
children 78da3894b86f 2b8e28fdf503
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Fri Oct 25 12:40:10 2013 -0700
+++ b/src/share/vm/compiler/compileBroker.cpp	Fri Oct 25 22:57:13 2013 +0200
@@ -780,6 +780,10 @@
 void CompileBroker::compilation_init() {
   _last_method_compiled[0] = '\0';
 
+  // No need to initialize compilation system if we do not use it.
+  if (!UseCompiler) {
+    return;
+  }
 #ifndef SHARK
   // Set the interface to the current compiler(s).
   int c1_count = CompilationPolicy::policy()->compiler_count(CompLevel_simple);