RFR: 8292917: [JVMCI] Extend InstalledCode API to make an nmethod non entrant. [v2]

Tom Rodriguez never at openjdk.org
Fri Aug 26 20:35:55 UTC 2022


On Fri, 26 Aug 2022 11:19:06 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> The existing `InstalledCode.invalidate()` method not only makes the underlying nmethod non-entrant but also immediately deoptimizes all current activations of the nmethod.
>> In some scenarios, it's useful to be able to make the nmethod non-entrant but let existing activations complete. For example, which installing new code in Truffle tiered compilation.
>> This PR adds `InstalledCode.invalidate(boolean deoptimize)` for that purpose.
>
> Doug Simon has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix compilation error

Marked as reviewed by never (Reviewer).

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

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


More information about the hotspot-compiler-dev mailing list