Skip to content

Commit c3c3888

Browse files
Cesar Soares LucasVladimir Kozlov
authored andcommitted
8336760: [JVMCI] -XX:+PrintCompilation should also print "hosted" JVMCI compilations
Reviewed-by: dnsimon, kvn
1 parent 9f4d3de commit c3c3888

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/hotspot/share/jvmci/jvmciCodeInstaller.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,12 @@ JVMCI::CodeInstallResult CodeInstaller::install(JVMCICompiler* compiler,
814814
DirectiveSet* directive = DirectivesStack::getMatchingDirective(method, compiler);
815815
nm->maybe_print_nmethod(directive);
816816
DirectivesStack::release(directive);
817+
818+
// Since this compilation didn't pass through the broker it wasn't logged yet.
819+
if (PrintCompilation) {
820+
ttyLocker ttyl;
821+
CompileTask::print(tty, nm, "(hosted JVMCI compilation)");
822+
}
817823
}
818824

819825
BarrierSetNMethod* bs_nm = BarrierSet::barrier_set()->barrier_set_nmethod();

0 commit comments

Comments
 (0)