8233590: Compiler thread creation fails with assert(_c2_count > 0 || _c1_count > 0) failed: No compilers?
authoriveresov
Tue, 05 Nov 2019 09:59:21 -0800
changeset 58938 358783d2ba0b
parent 58937 ba99c5a4491d
child 58940 e767fa6a1d45
8233590: Compiler thread creation fails with assert(_c2_count > 0 || _c1_count > 0) failed: No compilers? Summary: Handle the case with -XX:-TieredCompilation properly Reviewed-by: shade, thartmann Contributed-by: fujie@loongson.cn
src/hotspot/share/runtime/flags/jvmFlagConstraintsCompiler.cpp
--- a/src/hotspot/share/runtime/flags/jvmFlagConstraintsCompiler.cpp	Tue Nov 05 08:57:36 2019 -0800
+++ b/src/hotspot/share/runtime/flags/jvmFlagConstraintsCompiler.cpp	Tue Nov 05 09:59:21 2019 -0800
@@ -81,11 +81,11 @@
     } else {
       min_number_of_compiler_threads = 2;   // case 4 (tiered)
     }
-  } else
-#else
-  {
+  } else {
     min_number_of_compiler_threads = 1; // case 2
   }
+#else
+  min_number_of_compiler_threads = 1; // case 2
 #endif
 
   // The default CICompilerCount's value is CI_COMPILER_COUNT.