jmx-dev Integrated: 8369736 - Add management interface for AOT cache creation
Mat Carter
macarte at openjdk.org
Wed Dec 10 18:52:05 UTC 2025
On Tue, 28 Oct 2025 01:17:57 GMT, Mat Carter <macarte at openjdk.org> wrote:
> Add jdk.management.AOTCacheMXBean. The interface provides a single action that when called will cause any hosted JVM currently recording AOT information will stop recording. Existing functionality is preserved: when stopped the JVM will create the required artifacts based on the execution mode. Conveniently as the application running on the JVM has not stopped (as was previously the only way to stop recording), the application will resume execution after the artifacts have been generated.
>
> The interface will return TRUE if a recording was successfully stopped, in all other cases (not recording etc.) will return FALSE
>
> It follows that invoking the action on a JVM that is recording, twice in succession, should (baring internal errors) produce the following two responses:
>
> TRUE
> FALSE
>
> Passes tier1 on linux (x64) and windows (x64)
This pull request has now been integrated.
Changeset: 413f852b
Author: Mat Carter <macarte at openjdk.org>
Committer: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/413f852bdb4767b2a1c29431144616668888138d
Stats: 335 lines in 10 files changed: 332 ins; 0 del; 3 mod
8369736: Add management interface for AOT cache creation
Reviewed-by: mr, iklam, kevinw
-------------
PR: https://git.openjdk.org/jdk/pull/28010
More information about the jmx-dev
mailing list