RFR: 8336760: [JVMCI] -XX:+PrintCompilation should also print "hosted" JVMCI compilations
Cesar Soares Lucas
cslucas at openjdk.org
Thu Jan 23 20:07:23 UTC 2025
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.
764 jvmci:3812 ??$ 4 com.oracle.truffle.runtime.OptimizedCallTarget::callBoundary (19 bytes)
767 jvmci:4899 ??$ 4 com.oracle.truffle.runtime.hotspot.HotSpotFastThreadLocal::get (4 bytes)
769 jvmci:4944 ??$ 4 com.oracle.truffle.runtime.hotspot.HotSpotFastThreadLocal::set (5 bytes)
-------------
Commit messages:
- Print JVMCI hosted compilations during code installation.
Changes: https://git.openjdk.org/jdk/pull/23278/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23278&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8336760
Stats: 39 lines in 2 files changed: 32 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/23278.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23278/head:pull/23278
PR: https://git.openjdk.org/jdk/pull/23278
More information about the hotspot-compiler-dev
mailing list