JDK-8336760 : [JVMCI] -XX:+PrintCompilation should also print "hosted" JVMCI compilations
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,21,23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-07-18
  • Updated: 2025-02-05
  • Resolved: 2025-01-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 b08Fixed
Related Reports
Cloners :  
Relates :  
Relates :  
Description
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 behavior is confusing and should be fixed. Any nmethod installed in the code cache should be logged by `-XX:+PrintCompilation` no matter if its compilation was triggered by the `CompileBroker` or from another library through JVMCI.
Comments
Changeset: c3c38887 Branch: master Author: Cesar Soares Lucas <cslucas@openjdk.org> Committer: Vladimir Kozlov <kvn@openjdk.org> Date: 2025-01-28 19:18:59 +0000 URL: https://git.openjdk.org/jdk/commit/c3c3888762712e455757e4a52de8d680d58b8883
28-01-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/23278 Date: 2025-01-23 20:01:23 +0000
23-01-2025

ILW = -XX:+PrintCompilation does not print hosted JVMCI compilations, with JVMCI and -XX:+PrintCompilation, no workaround = MLH = P4
19-07-2024