RFR: Prototype AOTMXBean
Mat Carter
macarte at openjdk.org
Thu Apr 17 16:09:16 UTC 2025
On Thu, 3 Apr 2025 18:08:59 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> /**
>> * Returns the string representing the current AOT mode of
>> * operation.
>> *
>> * @return the string representing the current AOT mode.
>> */
>> public String getMode();
>>
>> /**
>> * Tests if a recording is in progress.
>> *
>> * @return {@code true} if a recording is in progress; {@code false} otherwise.
>> */
>> public boolean isRecording();
>>
>> /**
>> * If a recording is in progress or has been completed, then returns the duration in milliseconds
>> *
>> * @return duration of the recording in milliseconds.
>> */
>> public long getRecordingDuration();
>>
>> /**
>> * If a recording is in progress, then stops the recording.
>> *
>> * @return {@code true} if a recording was stopped; {@code false} otherwise.
>> */
>> public boolean endRecording();
>
> For a test case, I think you can make a copy of the following test case, but modify the MyTestApp to call the MX Bean instead.
>
> https://github.com/openjdk/leyden/blob/premain/test/hotspot/jtreg/runtime/cds/appcds/leyden/EndTrainingOnMethodEntry.java
@iklam - added test, as well as testing it stops training, it also tests that all bean methods work as expected in the various aot modes
-------------
PR Comment: https://git.openjdk.org/leyden/pull/52#issuecomment-2811345223
More information about the leyden-dev
mailing list