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

Doug Simon dnsimon at openjdk.org
Sat Aug 27 08:27:22 UTC 2022


On Fri, 26 Aug 2022 08:38:39 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.

This pull request has now been integrated.

Changeset: b0e0b878
Author:    Doug Simon <dnsimon at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b0e0b87891eb81c2b33c1cfa598701b7bd2e5bdf
Stats:     52 lines in 8 files changed: 26 ins; 1 del; 25 mod

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

Reviewed-by: never

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

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


More information about the hotspot-compiler-dev mailing list