RFR: 8335358: [premain] Explore alternative ways to trigger the end of training run [v6]
Mat Carter
macarte at openjdk.org
Wed Sep 18 14:43:59 UTC 2024
> 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 CDSPreImage is specified; this is needed as the phase2 forked java process is passed all phase1 flags along with the -XX:CDSPreImage, but we don't want to run the trigger code in this phase (there may be a better way to handle this state or simply remove the flag from the forked process)
>
> 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 prolog variants for methods that trigger end of AOT training; removed redundent checks now the triggers only added to the flagged methods
-------------
Changes:
- all: https://git.openjdk.org/leyden/pull/21/files
- new: https://git.openjdk.org/leyden/pull/21/files/5241ca39..cf63f7f2
Webrevs:
- full: https://webrevs.openjdk.org/?repo=leyden&pr=21&range=05
- incr: https://webrevs.openjdk.org/?repo=leyden&pr=21&range=04-05
Stats: 174 lines in 17 files changed: 101 ins; 20 del; 53 mod
Patch: https://git.openjdk.org/leyden/pull/21.diff
Fetch: git fetch https://git.openjdk.org/leyden.git pull/21/head:pull/21
PR: https://git.openjdk.org/leyden/pull/21
More information about the leyden-dev
mailing list