diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java index 956e8ee204baa..f7f4b2bb6b95c 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java @@ -662,6 +662,11 @@ public NativeImageInvokerInfo build() { nativeImageArgs.add("-H:+DashboardAll"); } + // Disable single parsing of compiler graphs till https://github.com/oracle/graal/issues/3435 gets fixed + if (graalVMVersion.isNewerThan(GraalVM.Version.VERSION_21_1)) { + nativeImageArgs.add("-H:-ParseOnce"); + } + nativeImageArgs.add(nativeImageName); return new NativeImageInvokerInfo(nativeImageArgs);