RFR: 8369736 - Add management interface for AOT cache creation [v11]
Kevin Walls
kevinw at openjdk.org
Wed Dec 3 10:05:30 UTC 2025
On Wed, 26 Nov 2025 20:35:11 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)
>
> Mat Carter has updated the pull request incrementally with one additional commit since the last revision:
>
> Fixed spaces and CRLF
src/jdk.management/share/classes/jdk/management/HotSpotAOTCacheMXBean.java line 78:
> 76: * <p>For more information about creating and using the AOT artifacts, and detailed
> 77: * specification of the corresponding JVM command-line options, please refer
> 78: * to <a href="https://openjdk.org/jeps/483">483</a> and <a href="https://openjdk.org/jeps/514">514</a>.
One more late nit: these links have just the raw number in the link text. Better to have:
* to <a href="https://openjdk.org/jeps/483">JEP 483</a> and <a href="https://openjdk.org/jeps/514">JEP 514</a>.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28010#discussion_r2584438379
More information about the serviceability-dev
mailing list