jmx-dev RFR: 8369736 - Add management interface for AOT cache creation [v2]
    Mat Carter 
    macarte at openjdk.org
       
    Tue Oct 28 19:00:40 UTC 2025
    
    
  
> 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 two additional commits since the last revision:
 - Update src/jdk.management/share/classes/jdk/management/HotSpotAOTCacheMXBean.java
   
   Co-authored-by: Dan Heidinga <dan.heidinga at oracle.com>
 - Update src/jdk.management/share/classes/jdk/management/HotSpotAOTCacheMXBean.java
   
   Co-authored-by: Dan Heidinga <dan.heidinga at oracle.com>
-------------
Changes:
  - all: https://git.openjdk.org/jdk/pull/28010/files
  - new: https://git.openjdk.org/jdk/pull/28010/files/d58c5147..2285a683
Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28010&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28010&range=00-01
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/28010.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28010/head:pull/28010
PR: https://git.openjdk.org/jdk/pull/28010
    
    
More information about the jmx-dev
mailing list