From 054236bef92044f08b35099ea93f1173c7bb7c31 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Thu, 19 Aug 2021 14:50:12 +0300 Subject: [PATCH] Re-enable single parsing of compiler graphs in native-image for 21.2 GraalVM 21.2-dev at some point introduced a new enhancement (enabled by default) to avoid parsing compiler graphs twice. This enhancement however results in increased memory usage at the moment (https://github.com/oracle/graal/issues/3435) which then results in Quarkus' Integration Test failures in CI. In GraalVM 21.2 this appears to no longer be an issue. --- .../io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java | 4 ---- 1 file changed, 4 deletions(-) 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 75ba060b0e62c..bf8fd781618a3 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 @@ -713,10 +713,6 @@ public NativeImageInvokerInfo build() { } if (graalVMVersion.isNewerThan(GraalVM.Version.VERSION_21_1)) { - - // Disable single parsing of compiler graphs till https://github.com/oracle/graal/issues/3435 gets fixed - nativeImageArgs.add("-H:-ParseOnce"); - // AdditionalSecurityProviders if (nativeImageSecurityProviders != null && !nativeImageSecurityProviders.isEmpty()) { String additionalSecurityProviders = nativeImageSecurityProviders.stream()