RFR: 8357424: [JVMCI] Avoid incrementing decompilation count for hosted compiled nmethod

Yudi Zheng yzheng at openjdk.org
Wed May 21 15:06:16 UTC 2025


Hosted Truffle compilations are installed on the OptimizedCallTarget#profiledPERoot method. Any deoptimization contributes to its decompile count, which can easily exceed the PerMethodRecompilationCutoff threshold, permanently preventing highest tier compilation on this method. This PR exempts hosted compilations from this cutoff by ensuring their decompile count is not incremented for hosted compiled nmethods.

-------------

Commit messages:
 - [JVMCI] Avoid incrementing decompilation count for hosted compiled nmethod

Changes: https://git.openjdk.org/jdk/pull/25356/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25356&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8357424
  Stats: 45 lines in 4 files changed: 37 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/25356.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25356/head:pull/25356

PR: https://git.openjdk.org/jdk/pull/25356


More information about the graal-dev mailing list