hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 9103 535a93f494f6
parent 8872 36680c58660e
child 9138 35e4b04eadf4
--- a/hotspot/src/share/vm/compiler/compileBroker.cpp	Sun Apr 03 12:00:54 2011 +0200
+++ b/hotspot/src/share/vm/compiler/compileBroker.cpp	Mon Apr 04 03:02:00 2011 -0700
@@ -847,9 +847,9 @@
 // Initialize the compilation queue
 void CompileBroker::init_compiler_threads(int c1_compiler_count, int c2_compiler_count) {
   EXCEPTION_MARK;
-#ifndef ZERO
+#if !defined(ZERO) && !defined(SHARK)
   assert(c2_compiler_count > 0 || c1_compiler_count > 0, "No compilers?");
-#endif // !ZERO
+#endif // !ZERO && !SHARK
   if (c2_compiler_count > 0) {
     _c2_method_queue  = new CompileQueue("C2MethodQueue",  MethodCompileQueue_lock);
   }
@@ -1118,7 +1118,7 @@
 
   assert(!HAS_PENDING_EXCEPTION, "No exception should be present");
   // some prerequisites that are compiler specific
-  if (compiler(comp_level)->is_c2()) {
+  if (compiler(comp_level)->is_c2() || compiler(comp_level)->is_shark()) {
     method->constants()->resolve_string_constants(CHECK_0);
     // Resolve all classes seen in the signature of the method
     // we are compiling.