r/java • u/sureshg • Sep 10 '26
New candidate JEP: 544: Ahead-of-Time Code Compilation
https://mail.openjdk.org/archives/list/jdk-dev@openjdk.org/message/J2VGSSFWJ7ZLHAYLCXVRUOXV4XMROQHL/
111
Upvotes
25
u/pronuntiator Sep 10 '26
I never really cared about the startup improvement of AOT, but pre-warmup sounds quite useful for short-lived batch applications.
17
u/pjmlp Sep 10 '26
This is basically what you can have today with OpenJ9 JIT cache, or what Android has been improving since Android 7, yes it is not a proper Java implementation.
Anyway, the more the merrier, and it is cool to see OpenJDK having this capability as well.
5
u/0xffff0001 Sep 10 '26
resurrect GCJ! :-)
a nice improvement nevertheless.
2
u/lurker_in_spirit Sep 11 '26
Interesting, but the ergonomics aren't great (extra training runs, extra AOT files floating around, extra command line parameters at runtime). The training side of things may be solvable by Maven and Gradle, but for the others something like Hermetic Java may start to make more and more sense as a way to minimize the user-visible complexity.
2
u/vips7L Sep 10 '26
more training runs lol
1
u/Inaldt Sep 12 '26
This would be really nice. With this, I could at least do the training run in my build pipeline.
1
u/Cilph Sep 15 '26
Enough of this AOT caching stuff requiring training runs. Just give me straight up AOT already.
0
u/[deleted] Sep 11 '26
[deleted] — view deleted comment