Skip to content

Commit

Permalink
Use jdk.internal.lambda.disableEagerInitialization for Native Image
Browse files Browse the repository at this point in the history
  • Loading branch information
vjovanov authored and dougxc committed Nov 4, 2019
1 parent c1cdd98 commit f7c8e25
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,8 @@ private int completeImageBuild() {
}

imageBuilderJavaArgs.add("-javaagent:" + config.getAgentJAR().toAbsolutePath().toString() + (traceClassInitialization() ? "=traceInitialization" : ""));
imageBuilderJavaArgs.add("-Djdk.internal.lambda.disableEagerInitialization=true");
// The following two are for backwards compatibility reasons. They should be removed.
imageBuilderJavaArgs.add("-Djdk.internal.lambda.eagerlyInitialize=false");
imageBuilderJavaArgs.add("-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false");

Expand Down

0 comments on commit f7c8e25

Please sign in to comment.