jmx-dev RFR: 8369736 - Add management interface for AOT cache creation [v15]
David Holmes
dholmes at openjdk.org
Wed Dec 10 21:05:53 UTC 2025
On Wed, 3 Dec 2025 22:29:24 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:
>
> Incorporate feedback into documentation
This change has broken the "since" checker test: tools/sincechecker/modules/jdk.management/JdkManagementCheckSince.java
src/jdk.management/jdk/management/HotSpotAOTCacheMXBean.java:44 class: jdk.management.HotSpotAOTCacheMXBean: `@since` version: 26; should be: 27
src/jdk.management/jdk/management/HotSpotAOTCacheMXBean.java:92 method: boolean jdk.management.HotSpotAOTCacheMXBean.endRecording(): `@since` version: 26; should be: 27
java.lang.Exception: The `@since` checker found 2 problems
Bug being filed
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28010#issuecomment-3638949417
More information about the jmx-dev
mailing list