GraalVM, Oracle’s polyglot runtime, has released version 22.0 with a focus on improving the developer experience, especially for those working with Java and other supported languages. Released on January 24, this version is compatible with both JDK 11 and JDK 17, the latest long-term support versions of Java. Developers can access the Community Edition from GitHub, while Enterprise Edition builds are available through Oracle.
One of the most significant advancements in GraalVM 22.0 revolves around Native Image technology, which compiles Java code ahead of time into stand-alone executables. This feature supports multiple programming languages and allows developers to create smaller, faster, and more efficient applications. Recent updates have focused on reducing image build times and optimizing memory usage, making it easier for developers to work with large projects.
In this new version, further improvements have been made to reduce the size of generated images. A more compressed encoding method for stack frame metadata has been introduced, resulting in smaller image sizes. For GraalVM Enterprise users, additional optimizations, such as an improved implementation of String.format()
, enable further size reductions. By making localization classes unreachable, developers can significantly shrink their images, making deployment faster and more resource-efficient.
GraalVM 22.0 also refines the build process for Native Image. The build output is now broken down into stages, with clear visual indicators showing the current stage, as well as detailed statistics and code and heap breakdowns. Additionally, Native Build Tools have been enhanced for better integration with the native agent, streamlining the development and build process. Changes have also been made to how the compiler handles profiling information, making it more efficient by performing optimizations even without profiling data, which improves performance in Native Image and Truffle languages. These updates reflect GraalVM’s continued effort to simplify and accelerate the development workflow, while offering powerful new features for developers working across multiple programming languages.