--- a/src/hotspot/share/c1/c1_GraphBuilder.cpp Sat Nov 30 16:21:19 2019 +0000
+++ b/src/hotspot/share/c1/c1_GraphBuilder.cpp Sat Nov 30 14:33:05 2019 -0800
@@ -3793,7 +3793,7 @@
INLINE_BAILOUT("total inlining greater than DesiredMethodLimit");
}
// printing
- print_inlining(callee);
+ print_inlining(callee, "inline", /*success*/ true);
}
// NOTE: Bailouts from this point on, which occur at the
@@ -4315,16 +4315,11 @@
void GraphBuilder::print_inlining(ciMethod* callee, const char* msg, bool success) {
CompileLog* log = compilation()->log();
if (log != NULL) {
+ assert(msg != NULL, "inlining msg should not be null!");
if (success) {
- if (msg != NULL)
- log->inline_success(msg);
- else
- log->inline_success("receiver is statically known");
+ log->inline_success(msg);
} else {
- if (msg != NULL)
- log->inline_fail(msg);
- else
- log->inline_fail("reason unknown");
+ log->inline_fail(msg);
}
}
EventCompilerInlining event;