RFR: 8357424: [JVMCI] Avoid incrementing decompilation count for hosted compiled nmethod [v7]
Cesar Soares Lucas
cslucas at openjdk.org
Tue Jun 17 17:09:33 UTC 2025
On Fri, 13 Jun 2025 16:29:17 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:
>
> - Merge tag 'jdk-26+2' into JDK-8357424
>
> Added tag jdk-26+2 for changeset d7aa3498
> - fix compilation error
> - address comments
> - Merge remote-tracking branch 'upstream/master' into JDK-8357424
> - address comments
> - address comments
> - update copyright
> - [JVMCI] Avoid incrementing decompilation count for hosted compiled nmethod
src/hotspot/share/runtime/deoptimization.cpp line 2367:
> 2365:
> 2366: #if INCLUDE_JVMCI
> 2367: if (nm->is_jvmci_hosted()) {
A comment here will probably be helpful as well.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25356#discussion_r2152765019
More information about the hotspot-dev
mailing list