< prev index next >

src/hotspot/share/compiler/compileTask.cpp

Print this page




 399     assert(_failure_reason != NULL, "missing");
 400     const char* reason = _failure_reason != NULL ? _failure_reason : "unknown";
 401     log->elem("failure reason='%s'", reason);
 402   }
 403 
 404   // <task_done ... stamp='1.234'>  </task>
 405   nmethod* nm = code();
 406   log->begin_elem("task_done success='%d' nmsize='%d' count='%d'",
 407                   _is_success, nm == NULL ? 0 : nm->content_size(),
 408                   method->invocation_count());
 409   int bec = method->backedge_count();
 410   if (bec != 0)  log->print(" backedge_count='%d'", bec);
 411   // Note:  "_is_complete" is about to be set, but is not.
 412   if (_num_inlined_bytecodes != 0) {
 413     log->print(" inlined_bytes='%d'", _num_inlined_bytecodes);
 414   }
 415   log->stamp();
 416   log->end_elem();
 417   log->clear_identities();   // next task will have different CI
 418   log->tail("task");
 419   log->flush();


 420   log->mark_file_end();
 421 }
 422 
 423 // ------------------------------------------------------------------
 424 // CompileTask::check_break_at_flags
 425 bool CompileTask::check_break_at_flags() {
 426   int compile_id = this->_compile_id;
 427   bool is_osr = (_osr_bci != CompileBroker::standard_entry_bci);
 428 
 429   if (CICountOSR && is_osr && (compile_id == CIBreakAtOSR)) {
 430     return true;
 431   } else {
 432     return (compile_id == CIBreakAt);
 433   }
 434 }
 435 
 436 // ------------------------------------------------------------------
 437 // CompileTask::print_inlining
 438 void CompileTask::print_inlining_inner(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg) {
 439   //         1234567




 399     assert(_failure_reason != NULL, "missing");
 400     const char* reason = _failure_reason != NULL ? _failure_reason : "unknown";
 401     log->elem("failure reason='%s'", reason);
 402   }
 403 
 404   // <task_done ... stamp='1.234'>  </task>
 405   nmethod* nm = code();
 406   log->begin_elem("task_done success='%d' nmsize='%d' count='%d'",
 407                   _is_success, nm == NULL ? 0 : nm->content_size(),
 408                   method->invocation_count());
 409   int bec = method->backedge_count();
 410   if (bec != 0)  log->print(" backedge_count='%d'", bec);
 411   // Note:  "_is_complete" is about to be set, but is not.
 412   if (_num_inlined_bytecodes != 0) {
 413     log->print(" inlined_bytes='%d'", _num_inlined_bytecodes);
 414   }
 415   log->stamp();
 416   log->end_elem();
 417   log->clear_identities();   // next task will have different CI
 418   log->tail("task");
 419   if (log->unflushed_count() > 2000) {
 420     log->flush();
 421   }
 422   log->mark_file_end();
 423 }
 424 
 425 // ------------------------------------------------------------------
 426 // CompileTask::check_break_at_flags
 427 bool CompileTask::check_break_at_flags() {
 428   int compile_id = this->_compile_id;
 429   bool is_osr = (_osr_bci != CompileBroker::standard_entry_bci);
 430 
 431   if (CICountOSR && is_osr && (compile_id == CIBreakAtOSR)) {
 432     return true;
 433   } else {
 434     return (compile_id == CIBreakAt);
 435   }
 436 }
 437 
 438 // ------------------------------------------------------------------
 439 // CompileTask::print_inlining
 440 void CompileTask::print_inlining_inner(outputStream* st, ciMethod* method, int inline_level, int bci, const char* msg) {
 441   //         1234567


< prev index next >