RFR: 8335358: [premain] Explore alternative ways to trigger the end of training run [v17]

Ioi Lam iklam at openjdk.org
Fri Nov 22 20:39:41 UTC 2024


On Fri, 22 Nov 2024 19:27:16 GMT, Mat Carter <macarte at openjdk.org> wrote:

>> AOT training can be ended using either
>> 
>> - -XX: AOTEndTrainingOnMethodEntry =Hello.someMethod [same syntax as CompileOnly]
>> - -XX: AOTEndTrainingOnMethodEntry =Hello.someMethod,Hello.someOtherMethod,count=42
>> - jcmd <pid> AOT.end_training
>> 
>> Also added programmatic hooks to System class:
>> - bool System.AOTIsTraining()
>> - void System.AOTEndTraining()
>> 
>> supports arm64 and x64
>> 
>> note: the AOTEndTrainingOnMethodEntry is ignored when not recording
>> 
>> JBS Issue: https://bugs.openjdk.org/browse/JDK-8335358
>
> Mat Carter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Added programmatic AOT(Is|End)Training calls to System class

LGTM. Mat, if are you ready to integrate, you can enter the /integrate command and I will sponsor it.

-------------

Marked as reviewed by iklam (Committer).

PR Review: https://git.openjdk.org/leyden/pull/21#pullrequestreview-2455593713


More information about the leyden-dev mailing list