< prev index next >
src/share/vm/compiler/compileTask.cpp
Print this page
*** 181,190 ****
--- 181,194 ----
bool is_osr_method, int osr_bci, bool is_blocking,
const char* msg, bool short_form, bool cr) {
if (!short_form) {
st->print("%7d ", (int) st->time_stamp().milliseconds()); // print timestamp
}
+ // print compiler name if requested
+ if (CIPrintCompilerName) {
+ st->print("%s:", CompileBroker::compiler_name(comp_level));
+ }
st->print("%4d ", compile_id); // print compilation number
// For unloaded methods the transition to zombie occurs after the
// method is cleared so it's impossible to report accurate
// information for that case.
*** 269,279 ****
} // else compile_kind='c2c'
if (!method.is_null()) log->method(method);
if (_osr_bci != CompileBroker::standard_entry_bci) {
log->print(" osr_bci='%d'", _osr_bci);
}
! if (_comp_level != CompLevel_highest_tier) {
log->print(" level='%d'", _comp_level);
}
if (_is_blocking) {
log->print(" blocking='1'");
}
--- 273,284 ----
} // else compile_kind='c2c'
if (!method.is_null()) log->method(method);
if (_osr_bci != CompileBroker::standard_entry_bci) {
log->print(" osr_bci='%d'", _osr_bci);
}
! // Always print the level in tiered.
! if (_comp_level != CompLevel_highest_tier || TieredCompilation) {
log->print(" level='%d'", _comp_level);
}
if (_is_blocking) {
log->print(" blocking='1'");
}
*** 305,314 ****
--- 310,337 ----
xtty->end_elem();
}
// ------------------------------------------------------------------
+ // CompileTask::log_task_dequeued
+ void CompileTask::log_task_dequeued(const char* comment) {
+ if (LogCompilation && xtty != NULL) {
+ Thread* thread = Thread::current();
+ ttyLocker ttyl;
+ ResourceMark rm(thread);
+
+ xtty->begin_elem("task_dequeued");
+ log_task(xtty);
+ if (comment != NULL) {
+ xtty->print(" comment='%s'", comment);
+ }
+ xtty->end_elem();
+ }
+ }
+
+
+ // ------------------------------------------------------------------
// CompileTask::log_task_start
void CompileTask::log_task_start(CompileLog* log) {
log->begin_head("task");
log_task(log);
log->end_head();
< prev index next >