< prev index next >

src/hotspot/share/compiler/compileBroker.cpp

Print this page
rev 47445 : 8171853: Remove Shark compiler
rev 47446 : imported patch jdk10-hs-single.patch


 768 #endif // !ZERO
 769   // Initialize the compilation queue
 770   if (c2_compiler_count > 0) {
 771     const char* name = JVMCI_ONLY(UseJVMCICompiler ? "JVMCI compile queue" :) "C2 compile queue";
 772     _c2_compile_queue  = new CompileQueue(name);
 773     _compilers[1]->set_num_compiler_threads(c2_compiler_count);
 774   }
 775   if (c1_compiler_count > 0) {
 776     _c1_compile_queue  = new CompileQueue("C1 compile queue");
 777     _compilers[0]->set_num_compiler_threads(c1_compiler_count);
 778   }
 779 
 780   int compiler_count = c1_compiler_count + c2_compiler_count;
 781 
 782   char name_buffer[256];
 783   const bool compiler_thread = true;
 784   for (int i = 0; i < c2_compiler_count; i++) {
 785     // Create a name for our thread.
 786     sprintf(name_buffer, "%s CompilerThread%d", _compilers[1]->name(), i);
 787     CompilerCounters* counters = new CompilerCounters();
 788     // C2
 789     make_thread(name_buffer, _c2_compile_queue, counters, _compilers[1], compiler_thread, CHECK);
 790   }
 791 
 792   for (int i = c2_compiler_count; i < compiler_count; i++) {
 793     // Create a name for our thread.
 794     sprintf(name_buffer, "C1 CompilerThread%d", i);
 795     CompilerCounters* counters = new CompilerCounters();
 796     // C1
 797     make_thread(name_buffer, _c1_compile_queue, counters, _compilers[0], compiler_thread, CHECK);
 798   }
 799 
 800   if (UsePerfData) {
 801     PerfDataManager::create_constant(SUN_CI, "threads", PerfData::U_Bytes, compiler_count, CHECK);
 802   }
 803 
 804   if (MethodFlushing) {
 805     // Initialize the sweeper thread
 806     make_thread("Sweeper thread", NULL, NULL, NULL, false, CHECK);
 807   }
 808 }




 768 #endif // !ZERO
 769   // Initialize the compilation queue
 770   if (c2_compiler_count > 0) {
 771     const char* name = JVMCI_ONLY(UseJVMCICompiler ? "JVMCI compile queue" :) "C2 compile queue";
 772     _c2_compile_queue  = new CompileQueue(name);
 773     _compilers[1]->set_num_compiler_threads(c2_compiler_count);
 774   }
 775   if (c1_compiler_count > 0) {
 776     _c1_compile_queue  = new CompileQueue("C1 compile queue");
 777     _compilers[0]->set_num_compiler_threads(c1_compiler_count);
 778   }
 779 
 780   int compiler_count = c1_compiler_count + c2_compiler_count;
 781 
 782   char name_buffer[256];
 783   const bool compiler_thread = true;
 784   for (int i = 0; i < c2_compiler_count; i++) {
 785     // Create a name for our thread.
 786     sprintf(name_buffer, "%s CompilerThread%d", _compilers[1]->name(), i);
 787     CompilerCounters* counters = new CompilerCounters();

 788     make_thread(name_buffer, _c2_compile_queue, counters, _compilers[1], compiler_thread, CHECK);
 789   }
 790 
 791   for (int i = c2_compiler_count; i < compiler_count; i++) {
 792     // Create a name for our thread.
 793     sprintf(name_buffer, "C1 CompilerThread%d", i);
 794     CompilerCounters* counters = new CompilerCounters();
 795     // C1
 796     make_thread(name_buffer, _c1_compile_queue, counters, _compilers[0], compiler_thread, CHECK);
 797   }
 798 
 799   if (UsePerfData) {
 800     PerfDataManager::create_constant(SUN_CI, "threads", PerfData::U_Bytes, compiler_count, CHECK);
 801   }
 802 
 803   if (MethodFlushing) {
 804     // Initialize the sweeper thread
 805     make_thread("Sweeper thread", NULL, NULL, NULL, false, CHECK);
 806   }
 807 }


< prev index next >