RFR: JDK-8275865: Print deoptimization statistics in product builds

Volker Simonis simonis at openjdk.java.net
Mon Oct 25 11:53:27 UTC 2021

Deoptimization statistics are already gathered in product builds but for some (probably historical) reasons aren't printed to the VM/Compiler log. These statics can be useful when analyzing the reasons for deoptimization and frequent recompilations.

Because the statistics are already collected anyway, printing them at VM-exit if either `-XX:+LogCompilation` or `-XX:+LogVMOutput` are set won't introduce any runtime overhead.


Commit messages:
 - JDK-8275865: Print deoptimization statistics in product builds

Changes: https://git.openjdk.java.net/jdk/pull/6103/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=6103&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8275865
  Stats: 84 lines in 2 files changed: 84 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/6103.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/6103/head:pull/6103

PR: https://git.openjdk.java.net/jdk/pull/6103

More information about the hotspot-runtime-dev mailing list