Lines Matching refs:CompileBroker
131 bool CompileBroker::_initialized = false;
132 volatile bool CompileBroker::_should_block = false;
133 volatile jint CompileBroker::_should_compile_new_jobs = run_compilation;
136 AbstractCompiler* CompileBroker::_compilers[2];
139 uint CompileBroker::_compilation_id = 0;
140 uint CompileBroker::_osr_compilation_id = 0;
143 int CompileBroker::_last_compile_type = no_compile;
144 int CompileBroker::_last_compile_level = CompLevel_none;
145 char CompileBroker::_last_method_compiled[CompileBroker::name_buffer_length];
148 PerfCounter* CompileBroker::_perf_total_compilation = NULL;
149 PerfCounter* CompileBroker::_perf_osr_compilation = NULL;
150 PerfCounter* CompileBroker::_perf_standard_compilation = NULL;
152 PerfCounter* CompileBroker::_perf_total_bailout_count = NULL;
153 PerfCounter* CompileBroker::_perf_total_invalidated_count = NULL;
154 PerfCounter* CompileBroker::_perf_total_compile_count = NULL;
155 PerfCounter* CompileBroker::_perf_total_osr_compile_count = NULL;
156 PerfCounter* CompileBroker::_perf_total_standard_compile_count = NULL;
158 PerfCounter* CompileBroker::_perf_sum_osr_bytes_compiled = NULL;
159 PerfCounter* CompileBroker::_perf_sum_standard_bytes_compiled = NULL;
160 PerfCounter* CompileBroker::_perf_sum_nmethod_size = NULL;
161 PerfCounter* CompileBroker::_perf_sum_nmethod_code_size = NULL;
163 PerfStringVariable* CompileBroker::_perf_last_method = NULL;
164 PerfStringVariable* CompileBroker::_perf_last_failed_method = NULL;
165 PerfStringVariable* CompileBroker::_perf_last_invalidated_method = NULL;
166 PerfVariable* CompileBroker::_perf_last_compile_type = NULL;
167 PerfVariable* CompileBroker::_perf_last_compile_size = NULL;
168 PerfVariable* CompileBroker::_perf_last_failed_type = NULL;
169 PerfVariable* CompileBroker::_perf_last_invalidated_type = NULL;
172 elapsedTimer CompileBroker::_t_total_compilation;
173 elapsedTimer CompileBroker::_t_osr_compilation;
174 elapsedTimer CompileBroker::_t_standard_compilation;
176 int CompileBroker::_total_bailout_count = 0;
177 int CompileBroker::_total_invalidated_count = 0;
178 int CompileBroker::_total_compile_count = 0;
179 int CompileBroker::_total_osr_compile_count = 0;
180 int CompileBroker::_total_standard_compile_count = 0;
182 int CompileBroker::_sum_osr_bytes_compiled = 0;
183 int CompileBroker::_sum_standard_bytes_compiled = 0;
184 int CompileBroker::_sum_nmethod_size = 0;
185 int CompileBroker::_sum_nmethod_code_size = 0;
187 long CompileBroker::_peak_compilation_time = 0;
189 CompileQueue* CompileBroker::_c2_method_queue = NULL;
190 CompileQueue* CompileBroker::_c1_method_queue = NULL;
191 CompileTask* CompileBroker::_task_free_list = NULL;
193 GrowableArray<CompilerThread*>* CompileBroker::_method_threads = NULL;
259 CompileBroker::free_task(task);
355 st->print("%s:", CompileBroker::compiler(comp_level())->name());
364 if (CIPrintCompilerName) tty->print("%s:", CompileBroker::compiler(comp_level())->name());
506 if (_osr_bci != CompileBroker::standard_entry_bci) {
510 if (_osr_bci != CompileBroker::standard_entry_bci) {
641 if (UseCodeCacheFlushing && (!CompileBroker::should_compile_new_jobs() || CodeCache::needs_flushing())) {
696 _compile_type = CompileBroker::no_compile;
731 // CompileBroker::compilation_init
734 void CompileBroker::compilation_init() {
841 (jlong)CompileBroker::no_compile,
847 (jlong)CompileBroker::no_compile,
854 (jlong)CompileBroker::no_compile,
860 (jlong)CompileBroker::no_compile,
870 // CompileBroker::make_compiler_thread
871 CompilerThread* CompileBroker::make_compiler_thread(const char* name, CompileQueue* queue, CompilerCounters* counters, TRAPS) {
950 // CompileBroker::init_compiler_threads
953 void CompileBroker::init_compiler_threads(int c1_compiler_count, int c2_compiler_count) {
994 // CompileBroker::is_idle
995 bool CompileBroker::is_idle() {
1015 // CompileBroker::compile_method
1018 void CompileBroker::compile_method_base(methodHandle method,
1180 nmethod* CompileBroker::compile_method(methodHandle method, int osr_bci,
1304 // CompileBroker::compilation_is_complete
1307 bool CompileBroker::compilation_is_complete(methodHandle method,
1331 // CompileBroker::compilation_is_in_queue
1341 bool CompileBroker::compilation_is_in_queue(methodHandle method,
1347 // CompileBroker::compilation_is_prohibited
1350 bool CompileBroker::compilation_is_prohibited(methodHandle method, int osr_bci, int comp_level) {
1387 // CompileBroker::assign_compile_id
1393 uint CompileBroker::assign_compile_id(methodHandle method, int osr_bci) {
1417 // CompileBroker::is_compile_blocking
1421 bool CompileBroker::is_compile_blocking(methodHandle method, int osr_bci) {
1428 // CompileBroker::preload_classes
1429 void CompileBroker::preload_classes(methodHandle method, TRAPS) {
1436 // CompileBroker::create_compile_task
1440 CompileTask* CompileBroker::create_compile_task(CompileQueue* queue,
1459 // CompileBroker::allocate_task
1462 CompileTask* CompileBroker::allocate_task() {
1478 // CompileBroker::free_task
1481 void CompileBroker::free_task(CompileTask* task) {
1490 // CompileBroker::wait_for_completion
1493 void CompileBroker::wait_for_completion(CompileTask* task) {
1526 // CompileBroker::compiler_thread_loop
1529 void CompileBroker::compiler_thread_loop() {
1596 if ((UseCompiler || AlwaysCompileLoopMethods) && CompileBroker::should_compile_new_jobs()) {
1625 // CompileBroker::init_compiler_thread_log
1628 void CompileBroker::init_compiler_thread_log() {
1669 // CompileBroker::set_should_block
1673 void CompileBroker::set_should_block() {
1684 // CompileBroker::maybe_block
1687 void CompileBroker::maybe_block() {
1699 // CompileBroker::invoke_compiler_on_method
1703 void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
1874 // CompileBroker::handle_full_code_cache
1878 void CompileBroker::handle_full_code_cache() {
1917 // CompileBroker::set_last_compile
1920 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) {
1923 strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length);
1969 // CompileBroker::push_jni_handle_block
1972 void CompileBroker::push_jni_handle_block() {
1986 // CompileBroker::pop_jni_handle_block
1989 void CompileBroker::pop_jni_handle_block() {
2002 // CompileBroker::check_break_at
2005 bool CompileBroker::check_break_at(methodHandle method, int compile_id, bool is_osr) {
2016 // CompileBroker::collect_statistics
2020 void CompileBroker::collect_statistics(CompilerThread* thread, elapsedTimer time, CompileTask* task) {
2114 void CompileBroker::print_times() {
2120 tty->print_cr(" Total compilation time : %6.3f s", CompileBroker::_t_total_compilation.seconds());
2122 CompileBroker::_t_standard_compilation.seconds(),
2123 CompileBroker::_t_standard_compilation.seconds() / CompileBroker::_total_standard_compile_count);
2124 tty->print_cr(" On stack replacement : %6.3f s, Average : %2.3f", CompileBroker::_t_osr_compilation.seconds(), CompileBroker::_t_osr_compilation.seconds() / CompileBroker::_total_osr_compile_count);
2133 int tcb = CompileBroker::_sum_osr_bytes_compiled + CompileBroker::_sum_standard_bytes_compiled;
2135 tty->print_cr(" Standard compilation : %6d bytes", CompileBroker::_sum_standard_bytes_compiled);
2136 tty->print_cr(" On stack replacement : %6d bytes", CompileBroker::_sum_osr_bytes_compiled);
2137 int bps = (int)(tcb / CompileBroker::_t_total_compilation.seconds());
2140 tty->print_cr(" nmethod code size : %6d bytes", CompileBroker::_sum_nmethod_code_size);
2141 tty->print_cr(" nmethod total size : %6d bytes", CompileBroker::_sum_nmethod_size);
2145 void CompileBroker::print_last_compile() {
2161 void CompileBroker::print_compiler_threads_on(outputStream* st) {