Skip to content

Commit

Permalink
Merge pull request #6614 from geoand/additional-buildargs-trim
Browse files Browse the repository at this point in the history
Trim graalvm additional build arguments
  • Loading branch information
machi1990 authored Jan 17, 2020
2 parents 373ce14 + 1ed1bd9 commit fd73233
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public NativeImageBuildItem build(NativeConfig nativeConfig, NativeImageSourceJa
nativeConfig.enableAllSecurityServices = true;
}

nativeConfig.additionalBuildArgs.ifPresent(command::addAll);
nativeConfig.additionalBuildArgs.ifPresent(l -> l.stream().map(String::trim).forEach(command::add));
command.add("--initialize-at-build-time=");
command.add("-H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy$BySpaceAndTime"); //the default collection policy results in full GC's 50% of the time
command.add("-jar");
Expand Down

0 comments on commit fd73233

Please sign in to comment.