hotspot/src/share/vm/compiler/compileBroker.cpp
Print this page
*** 566,575 ****
--- 566,583 ----
#ifndef COMPILER1
_compilers[0] = _compilers[1];
#endif
#endif // COMPILER2
+ #ifdef SHARK
+ #if defined(COMPILER1) || defined(COMPILER2)
+ #error "Can't use COMPILER1 or COMPILER2 with shark"
+ #endif
+ _compilers[0] = new SharkCompiler();
+ _compilers[1] = _compilers[0];
+ #endif
+
// Initialize the CompileTask free list
_task_free_list = NULL;
// Start the CompilerThreads
init_compiler_threads(compiler_count());