Skip to content

Commit

Permalink
Trim graalvm additional build arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jan 17, 2020
1 parent 644320b commit 1ed1bd9
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 1ed1bd9

Please sign in to comment.