equal
deleted
inserted
replaced
3791 |
3791 |
3792 if (compilation()->env()->num_inlined_bytecodes() > DesiredMethodLimit) { |
3792 if (compilation()->env()->num_inlined_bytecodes() > DesiredMethodLimit) { |
3793 INLINE_BAILOUT("total inlining greater than DesiredMethodLimit"); |
3793 INLINE_BAILOUT("total inlining greater than DesiredMethodLimit"); |
3794 } |
3794 } |
3795 // printing |
3795 // printing |
3796 print_inlining(callee); |
3796 print_inlining(callee, "inline", /*success*/ true); |
3797 } |
3797 } |
3798 |
3798 |
3799 // NOTE: Bailouts from this point on, which occur at the |
3799 // NOTE: Bailouts from this point on, which occur at the |
3800 // GraphBuilder level, do not cause bailout just of the inlining but |
3800 // GraphBuilder level, do not cause bailout just of the inlining but |
3801 // in fact of the entire compilation. |
3801 // in fact of the entire compilation. |
4313 } |
4313 } |
4314 |
4314 |
4315 void GraphBuilder::print_inlining(ciMethod* callee, const char* msg, bool success) { |
4315 void GraphBuilder::print_inlining(ciMethod* callee, const char* msg, bool success) { |
4316 CompileLog* log = compilation()->log(); |
4316 CompileLog* log = compilation()->log(); |
4317 if (log != NULL) { |
4317 if (log != NULL) { |
|
4318 assert(msg != NULL, "inlining msg should not be null!"); |
4318 if (success) { |
4319 if (success) { |
4319 if (msg != NULL) |
4320 log->inline_success(msg); |
4320 log->inline_success(msg); |
|
4321 else |
|
4322 log->inline_success("receiver is statically known"); |
|
4323 } else { |
4321 } else { |
4324 if (msg != NULL) |
4322 log->inline_fail(msg); |
4325 log->inline_fail(msg); |
|
4326 else |
|
4327 log->inline_fail("reason unknown"); |
|
4328 } |
4323 } |
4329 } |
4324 } |
4330 EventCompilerInlining event; |
4325 EventCompilerInlining event; |
4331 if (event.should_commit()) { |
4326 if (event.should_commit()) { |
4332 post_inlining_event(&event, compilation()->env()->task()->compile_id(), msg, success, bci(), method(), callee); |
4327 post_inlining_event(&event, compilation()->env()->task()->compile_id(), msg, success, bci(), method(), callee); |