r/java • u/cred1652 • Sep 21 '26
JEP 544: Ahead-of-Time Code Compilation targets JDK 28
https://openjdk.org/jeps/544JEP 544: Ahead-of-Time Code Compilation targets JDK 28
78
Upvotes
r/java • u/cred1652 • Sep 21 '26
View all comments
Show parent comment
6
u/Deep_Age4643 Sep 22 '26
Yes, this can complicate and slows the CI/CD pipeline a lot.
Note that
- Since JDK 26 the GC can be different from the trainings run and the runtime (JEP 516, Ahead-of-Time Object Caching with Any GC)
- Some frameworks can perform a minimal trainings run. For example Spring Boot:
These are features that make creating a cache more convenient.
To make full use of it, you still need to run your application on different architectures with a training run that matches a production run. Then you need to store the cache in an artifact repository and use that artifact based on the architecture for specific Docker images (no multi-layered/architecture possible).
I think this poses a significant hurdle and hope that it will be easier in future releases, because the gains in terms of startup and warmup can be significant.