Skip to content

Commit

Permalink
MaximumHeapSizePercent is an int not a double
Browse files Browse the repository at this point in the history
  • Loading branch information
gilles-duboscq committed Oct 15, 2024
1 parent 3ee833a commit 2158892
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static List<String> determineMemoryFlags(NativeImage.HostFlags hostFlags)
if (hostFlags.hasMaxRAMPercentage()) {
flags.add("-XX:MaxRAMPercentage=" + determineReasonableMaxRAMPercentage());
} else if (hostFlags.hasMaximumHeapSizePercent()) {
flags.add("-XX:MaximumHeapSizePercent=" + determineReasonableMaxRAMPercentage());
flags.add("-XX:MaximumHeapSizePercent=" + (int) determineReasonableMaxRAMPercentage());
}
if (hostFlags.hasGCTimeRatio()) {
/*
Expand Down

0 comments on commit 2158892

Please sign in to comment.