mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8234541: C1 emits an empty message when it inlines successfully
Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr
This commit is contained in:
parent
f3e90595aa
commit
4e64af81a2
2 changed files with 5 additions and 10 deletions
|
@ -3793,7 +3793,7 @@ bool GraphBuilder::try_inline_full(ciMethod* callee, bool holder_known, bool ign
|
|||
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 @@ static void post_inlining_event(EventCompilerInlining* event,
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue