401 } |
401 } |
402 |
402 |
403 //------------------------------print_inlining--------------------------------- |
403 //------------------------------print_inlining--------------------------------- |
404 // Really, the failure_msg can be a success message also. |
404 // Really, the failure_msg can be a success message also. |
405 void InlineTree::print_inlining(ciMethod* callee_method, int caller_bci, const char* failure_msg) const { |
405 void InlineTree::print_inlining(ciMethod* callee_method, int caller_bci, const char* failure_msg) const { |
406 CompileTask::print_inlining(callee_method, inline_level(), caller_bci, failure_msg ? failure_msg : "inline"); |
406 C->print_inlining(callee_method, inline_level(), caller_bci, failure_msg ? failure_msg : "inline"); |
407 if (callee_method == NULL) tty->print(" callee not monotonic or profiled"); |
407 if (callee_method == NULL) tty->print(" callee not monotonic or profiled"); |
408 if (Verbose && callee_method) { |
408 if (Verbose && callee_method) { |
409 const InlineTree *top = this; |
409 const InlineTree *top = this; |
410 while( top->caller_tree() != NULL ) { top = top->caller_tree(); } |
410 while( top->caller_tree() != NULL ) { top = top->caller_tree(); } |
411 //tty->print(" bcs: %d+%d invoked: %d", top->count_inline_bcs(), callee_method->code_size(), callee_method->interpreter_invocation_count()); |
411 //tty->print(" bcs: %d+%d invoked: %d", top->count_inline_bcs(), callee_method->code_size(), callee_method->interpreter_invocation_count()); |