equal
deleted
inserted
replaced
181 bool is_osr_method, int osr_bci, bool is_blocking, |
181 bool is_osr_method, int osr_bci, bool is_blocking, |
182 const char* msg, bool short_form, bool cr) { |
182 const char* msg, bool short_form, bool cr) { |
183 if (!short_form) { |
183 if (!short_form) { |
184 st->print("%7d ", (int) st->time_stamp().milliseconds()); // print timestamp |
184 st->print("%7d ", (int) st->time_stamp().milliseconds()); // print timestamp |
185 } |
185 } |
|
186 // print compiler name if requested |
|
187 if (CIPrintCompilerName) { |
|
188 st->print("%s:", CompileBroker::compiler_name(comp_level)); |
|
189 } |
186 st->print("%4d ", compile_id); // print compilation number |
190 st->print("%4d ", compile_id); // print compilation number |
187 |
191 |
188 // For unloaded methods the transition to zombie occurs after the |
192 // For unloaded methods the transition to zombie occurs after the |
189 // method is cleared so it's impossible to report accurate |
193 // method is cleared so it's impossible to report accurate |
190 // information for that case. |
194 // information for that case. |
269 } // else compile_kind='c2c' |
273 } // else compile_kind='c2c' |
270 if (!method.is_null()) log->method(method); |
274 if (!method.is_null()) log->method(method); |
271 if (_osr_bci != CompileBroker::standard_entry_bci) { |
275 if (_osr_bci != CompileBroker::standard_entry_bci) { |
272 log->print(" osr_bci='%d'", _osr_bci); |
276 log->print(" osr_bci='%d'", _osr_bci); |
273 } |
277 } |
274 if (_comp_level != CompLevel_highest_tier) { |
278 // Always print the level in tiered. |
|
279 if (_comp_level != CompLevel_highest_tier || TieredCompilation) { |
275 log->print(" level='%d'", _comp_level); |
280 log->print(" level='%d'", _comp_level); |
276 } |
281 } |
277 if (_is_blocking) { |
282 if (_is_blocking) { |
278 log->print(" blocking='1'"); |
283 log->print(" blocking='1'"); |
279 } |
284 } |
301 } |
306 } |
302 if (_hot_count != 0) { |
307 if (_hot_count != 0) { |
303 xtty->print(" hot_count='%d'", _hot_count); |
308 xtty->print(" hot_count='%d'", _hot_count); |
304 } |
309 } |
305 xtty->end_elem(); |
310 xtty->end_elem(); |
|
311 } |
|
312 |
|
313 |
|
314 // ------------------------------------------------------------------ |
|
315 // CompileTask::log_task_dequeued |
|
316 void CompileTask::log_task_dequeued(const char* comment) { |
|
317 if (LogCompilation && xtty != NULL) { |
|
318 Thread* thread = Thread::current(); |
|
319 ttyLocker ttyl; |
|
320 ResourceMark rm(thread); |
|
321 |
|
322 xtty->begin_elem("task_dequeued"); |
|
323 log_task(xtty); |
|
324 if (comment != NULL) { |
|
325 xtty->print(" comment='%s'", comment); |
|
326 } |
|
327 xtty->end_elem(); |
|
328 } |
306 } |
329 } |
307 |
330 |
308 |
331 |
309 // ------------------------------------------------------------------ |
332 // ------------------------------------------------------------------ |
310 // CompileTask::log_task_start |
333 // CompileTask::log_task_start |