src/hotspot/share/compiler/compileBroker.cpp
changeset 49618 c5b066caefba
parent 49611 973c9504178e
child 49848 fcd5df7aa235
equal deleted inserted replaced
49617:82634a458dc8 49618:c5b066caefba
   522 
   522 
   523 // ------------------------------------------------------------------
   523 // ------------------------------------------------------------------
   524 // CompileBroker::compilation_init
   524 // CompileBroker::compilation_init
   525 //
   525 //
   526 // Initialize the Compilation object
   526 // Initialize the Compilation object
   527 void CompileBroker::compilation_init(TRAPS) {
   527 void CompileBroker::compilation_init_phase1(TRAPS) {
   528   _last_method_compiled[0] = '\0';
   528   _last_method_compiled[0] = '\0';
   529 
   529 
   530   // No need to initialize compilation system if we do not use it.
   530   // No need to initialize compilation system if we do not use it.
   531   if (!UseCompiler) {
   531   if (!UseCompiler) {
   532     return;
   532     return;
   669          PerfDataManager::create_variable(SUN_CI, "lastInvalidatedType",
   669          PerfDataManager::create_variable(SUN_CI, "lastInvalidatedType",
   670                                           PerfData::U_None,
   670                                           PerfData::U_None,
   671                                           (jlong)CompileBroker::no_compile,
   671                                           (jlong)CompileBroker::no_compile,
   672                                           CHECK);
   672                                           CHECK);
   673   }
   673   }
   674 
   674 }
       
   675 
       
   676 // Completes compiler initialization. Compilation requests submitted
       
   677 // prior to this will be silently ignored.
       
   678 void CompileBroker::compilation_init_phase2() {
   675   _initialized = true;
   679   _initialized = true;
   676 }
   680 }
   677 
       
   678 
   681 
   679 JavaThread* CompileBroker::make_thread(const char* name, CompileQueue* queue, CompilerCounters* counters,
   682 JavaThread* CompileBroker::make_thread(const char* name, CompileQueue* queue, CompilerCounters* counters,
   680                                        AbstractCompiler* comp, bool compiler_thread, TRAPS) {
   683                                        AbstractCompiler* comp, bool compiler_thread, TRAPS) {
   681   JavaThread* thread = NULL;
   684   JavaThread* thread = NULL;
   682   Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_Thread(), true, CHECK_0);
   685   Klass* k = SystemDictionary::resolve_or_fail(vmSymbols::java_lang_Thread(), true, CHECK_0);