r/java • • 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

35 comments sorted by

View all comments

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.

9

u/stefanos-ak Sep 11 '26

openj9 is such a cool piece of tech... it also needs half the non-heap memory compared to hotspot!

1

u/bobbie434343 Sep 11 '26

Yup, OpenJ9 is particularly interesting in (very) memory constrained environments.

1

u/RandomName8 Sep 11 '26

Where do you get openj9 from? and is it available for all platforms? also how do you do the cache thing with it? is it the cds stuff?

3

u/pjmlp Sep 11 '26

From here,

https://developer.ibm.com/languages/java/semeru-runtimes/downloads

Documentation on JIT cache,

https://eclipse.dev/openj9/docs/aot

Additionally just like Azul, OpenJ9 also has a JIT server option, where a dedicated server(s) host the JIT and share compiled code across runtimes, with shared knowledge about each customer execution workflows

https://developer.ibm.com/articles/jitserver-optimize-your-java-cloud-native-applications/

1

u/RandomName8 Sep 12 '26

Much appreciated.