Integrated: 8336760: [JVMCI] -XX:+PrintCompilation should also print "hosted" JVMCI compilations
Cesar Soares Lucas
cslucas at openjdk.org
Tue Jan 28 19:21:57 UTC 2025
On Thu, 23 Jan 2025 20:01:23 GMT, Cesar Soares Lucas <cslucas at openjdk.org> wrote:
> Currently, `-XX:+PrintCompilation` does not print "hosted" JVMCI compilations (i.e. JVMCI compilations not triggered by the `CompilerBroker` but e.g. by the Truffle framework). On the other hand, if such an nmethod which results from a "hosted" compilation gets deoptimized, it will be printed by `-XX:+PrintCompilation` (with a compilation ID that doesn't appear anywhere before in the compilation log.
>
> This pull request is intended to fix that. The snippet below is an example of output printed (with PrintCompilation and CIPrintCompilerName enabled) for Truffle hosted compilations using this patch.
>
>
> 783 JVMCI:4667 4 com.oracle.truffle.runtime.OptimizedCallTarget::callBoundary (19 bytes) (hosted JVMCI compilation)
> 785 JVMCI:5342 4 com.oracle.truffle.runtime.hotspot.HotSpotFastThreadLocal::get (4 bytes) (hosted JVMCI compilation)
> 786 JVMCI:5411 4 com.oracle.truffle.runtime.hotspot.HotSpotFastThreadLocal::set (5 bytes) (hosted JVMCI compilation)
> 1582 JVMCI:10125 4 com.oracle.truffle.runtime.OptimizedCallTarget::profiledPERoot (51 bytes) (hosted JVMCI compilation)
> 1591 JVMCI:10899 4 com.oracle.truffle.runtime.OptimizedCallTarget::profiledPERoot (51 bytes) (hosted JVMCI compilation)
> 1652 JVMCI:11064 4 com.oracle.truffle.runtime.OptimizedCallTarget::profiledPERoot (51 bytes) (hosted JVMCI compilation)
> 1656 JVMCI:11175 4 com.oracle.truffle.runtime.OptimizedCallTarget::profiledPERoot (51 bytes) (hosted JVMCI compilation)
This pull request has now been integrated.
Changeset: c3c38887
Author: Cesar Soares Lucas <cslucas at openjdk.org>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c3c3888762712e455757e4a52de8d680d58b8883
Stats: 6 lines in 1 file changed: 6 ins; 0 del; 0 mod
8336760: [JVMCI] -XX:+PrintCompilation should also print "hosted" JVMCI compilations
Reviewed-by: dnsimon, kvn
-------------
PR: https://git.openjdk.org/jdk/pull/23278
More information about the hotspot-compiler-dev
mailing list