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

Doug Simon dnsimon at openjdk.org
Wed May 21 21:22:56 UTC 2025


On Wed, 21 May 2025 15:10:30 GMT, Yudi Zheng <yzheng at openjdk.org> wrote:

>> 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.
>
> Yudi Zheng has updated the pull request incrementally with one additional commit since the last revision:
> 
>   update copyright

src/hotspot/share/code/nmethod.cpp line 2061:

> 2059: #if INCLUDE_JVMCI
> 2060:       if (jvmci_nmethod_data() != nullptr && !jvmci_nmethod_data()->is_default()) {
> 2061:         // Hosted compilations are not subject to the recompilation cutoff

Suggestion:

        // Non-default (i.e., non-CompileBroker) compilations are not subject to the recompilation cutoff

"hosted compilations" can be confusing (even though I see we unfortunately already use it elsewhere in JVMCI)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25356#discussion_r2101189921


More information about the graal-dev mailing list