RFR: 8335358: [premain] Explore alternative ways to trigger the end of training run [v15]
Vladimir Ivanov
vlivanov at openjdk.org
Wed Nov 20 19:13:49 UTC 2024
On Wed, 20 Nov 2024 19:00:23 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
>>
>> 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:
>
> replace camelCase with lowercase_lowercase
Nice work, Mat!
Speaking of proposed API, there's a lot of complexity around `-XX:AOTEndTrainingOnMethodEntry=`. What's the primary use case for it? Does it add much for uncooperative case (no application changes) compared to `jcmd`?
For cooperative case, a dedicated method in JDK an application can call seems more appropriate.
-------------
PR Comment: https://git.openjdk.org/leyden/pull/21#issuecomment-2489353011
More information about the leyden-dev
mailing list