Skip to content

Commit

Permalink
Prefer G1 GC on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Oct 4, 2024
1 parent 0149161 commit 9e1db0a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
22 changes: 21 additions & 1 deletion graalwasm/graalwasm-micronaut-photon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@
<configuration>
<buildArgs>
<buildArg>-march=native</buildArg>
<buildArg>--gc=G1</buildArg>
</buildArgs>
</configuration>
</plugin>
Expand Down Expand Up @@ -196,6 +195,27 @@
</build>

<profiles>
<profile>
<id>enable-g1gc</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<buildArgs combine.children="append">
<buildArg>--gc=G1</buildArg><!-- Prefer G1 on Linux -->
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>pgo-instrument</id>
<build>
Expand Down
22 changes: 21 additions & 1 deletion graalwasm/graalwasm-spring-boot-photon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
<configuration>
<buildArgs>
<buildArg>-march=native</buildArg>
<buildArg>--gc=G1</buildArg>
</buildArgs>
</configuration>
</plugin>
Expand Down Expand Up @@ -137,6 +136,27 @@
</build>

<profiles>
<profile>
<id>enable-g1gc</id>
<activation>
<os>
<family>unix</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<configuration>
<buildArgs combine.children="append">
<buildArg>--gc=G1</buildArg><!-- Prefer G1 on Linux -->
</buildArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>pgo-instrument</id>
<build>
Expand Down

0 comments on commit 9e1db0a

Please sign in to comment.