| Owner | Vladimir Kozlov |
| Type | Feature |
| Scope | JDK |
| Status | Closed / Delivered |
| Release | 17 |
| Component | hotspot / compiler |
| Discussion | hotspot dash compiler dash dev at openjdk dot java dot net |
| Effort | S |
| Duration | S |
| Reviewed by | Mikael Vidstedt |
| Created | 2021/03/10 02:59 |
| Updated | 2025/07/02 11:59 |
| Issue | 8263327 |
Remove the experimental Java-based ahead-of-time (AOT) and just-in-time (JIT) compiler. This compiler has seen little use since its introduction and the effort required to maintain it is significant. Retain the experimental Java-level JVM compiler interface (JVMCI) so that developers can continue to use externally-built versions of the compiler for JIT compilation.
Ahead-of-time compilation (thejaotc tool) was incorporated into JDK 9 as an experimental feature viaJEP 295. Thejaotc tool uses the Graal compiler, which is itself written in Java, for AOT compilation.
The Graal compiler was made available as an experimental JIT compiler in JDK 10 viaJEP 317.
We have seen little use of these experimental features since they were introduced, and the effort required to maintain and enhance them is significant. These features werenot included in the JDK 16 builds published by Oracle, and no one complained.
Remove three JDK modules:
jdk.aot — thejaotc tooljdk.internal.vm.compiler — the Graal compilerjdk.internal.vm.compiler.management — Graal'sMBeanPreserve these two Graal-related source files so that the JVMCI module (jdk.internal.vm.ci,JEP 243) continues to build:
src/jdk.internal.vm.compiler/share/classes/module-info.javasrc/jdk.internal.vm.compiler.management/share/classes/module-info.javaRemove HotSpot code related to AOT compilation:
src/hotspot/share/aot — dumps and loads AOT code#if INCLUDE_AOTFinally, remove tests as well as code in makefiles related to Graal and AOT compilation.
Developers who wish to use the Graal compiler for either AOT or JIT compilation can useGraalVM.
We assume that developers actively using these features have had sufficient notice of this removal.