Skip to content

Commit

Permalink
Merge pull request #17711 from zakkak/workaround-oracle3435
Browse files Browse the repository at this point in the history
Disable single parsing of compiler graphs in native-image
  • Loading branch information
gsmet authored Jun 7, 2021
2 parents d2c3116 + fe8c35d commit 9295b72
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9295b72

Please sign in to comment.