src/share/vm/compiler/compileBroker.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File JDK-8026949 Sdiff src/share/vm/compiler

src/share/vm/compiler/compileBroker.cpp

Print this page




 789     _compilers[0] = new Compiler();
 790   }
 791 #endif // COMPILER1
 792 
 793 #ifdef COMPILER2
 794   if (c2_count > 0) {
 795     _compilers[1] = new C2Compiler();
 796   }
 797 #endif // COMPILER2
 798 
 799 #else // SHARK
 800   int c1_count = 0;
 801   int c2_count = 1;
 802 
 803   _compilers[1] = new SharkCompiler();
 804 #endif // SHARK
 805 
 806   // Initialize the CompileTask free list
 807   _task_free_list = NULL;
 808 
 809   // Start the CompilerThreads

 810   init_compiler_threads(c1_count, c2_count);

 811   // totalTime performance counter is always created as it is required
 812   // by the implementation of java.lang.management.CompilationMBean.
 813   {
 814     EXCEPTION_MARK;
 815     _perf_total_compilation =
 816                  PerfDataManager::create_counter(JAVA_CI, "totalTime",
 817                                                  PerfData::U_Ticks, CHECK);
 818   }
 819 
 820 
 821   if (UsePerfData) {
 822 
 823     EXCEPTION_MARK;
 824 
 825     // create the jvmstat performance counters
 826     _perf_osr_compilation =
 827                  PerfDataManager::create_counter(SUN_CI, "osrTime",
 828                                                  PerfData::U_Ticks, CHECK);
 829 
 830     _perf_standard_compilation =




 789     _compilers[0] = new Compiler();
 790   }
 791 #endif // COMPILER1
 792 
 793 #ifdef COMPILER2
 794   if (c2_count > 0) {
 795     _compilers[1] = new C2Compiler();
 796   }
 797 #endif // COMPILER2
 798 
 799 #else // SHARK
 800   int c1_count = 0;
 801   int c2_count = 1;
 802 
 803   _compilers[1] = new SharkCompiler();
 804 #endif // SHARK
 805 
 806   // Initialize the CompileTask free list
 807   _task_free_list = NULL;
 808 
 809   // Start compiler thread(s)
 810   if (c1_count > 0 || c2_count > 0) {
 811     init_compiler_threads(c1_count, c2_count);
 812   }
 813   // totalTime performance counter is always created as it is required
 814   // by the implementation of java.lang.management.CompilationMBean.
 815   {
 816     EXCEPTION_MARK;
 817     _perf_total_compilation =
 818                  PerfDataManager::create_counter(JAVA_CI, "totalTime",
 819                                                  PerfData::U_Ticks, CHECK);
 820   }
 821 
 822 
 823   if (UsePerfData) {
 824 
 825     EXCEPTION_MARK;
 826 
 827     // create the jvmstat performance counters
 828     _perf_osr_compilation =
 829                  PerfDataManager::create_counter(SUN_CI, "osrTime",
 830                                                  PerfData::U_Ticks, CHECK);
 831 
 832     _perf_standard_compilation =


src/share/vm/compiler/compileBroker.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File