From 218c6b183e5355ffb86ff2b656fec52465133a16 Mon Sep 17 00:00:00 2001 From: Maurizio Turatti Date: Wed, 23 Oct 2024 16:54:53 +0200 Subject: [PATCH] Update graalvm.md Remove references to deprecated garbage collector G1 --- docs/graalvm.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/graalvm.md b/docs/graalvm.md index 2299d7ae..3468f901 100644 --- a/docs/graalvm.md +++ b/docs/graalvm.md @@ -159,8 +159,6 @@ Build image for local OS $ ./mvnw clean package -Pnative -DskipTests ``` -__Note__: Linux needs to use the `G1` garbage collector. This is obtained by passing the `-Dnative.gc="--gc=G1"` property to maven. - ## A docker image to build Linux native images [SoftInstigate](https://softinstigate.com) maintains the Debian based, docker image [softinstigate/graalvm-maven](https://github.com/SoftInstigate/graalvm-maven-docker) with GraalVM and Maven and `native-image`. @@ -178,7 +176,7 @@ $ docker run -it --rm \ -v "$PWD":/opt/app \ -v "$HOME"/.m2:/root/.m2 \ softinstigate/graalvm-maven \ - clean package -Pnative -DskipTests -Dnative.gc="--gc=G1" + clean package -Pnative -DskipTests ``` native-image arguments are defined in [this file](https://github.com/SoftInstigate/restheart/blob/master/core/src/main/resources/META-INF/native-image/org.restheart/restheart/native-image.properties).