From aa519ac6a7ec6393d8039101d5df0f262a69fd78 Mon Sep 17 00:00:00 2001 From: jaguililla Date: Mon, 20 Nov 2023 20:55:11 +0100 Subject: [PATCH] Update native image metadata --- .../gradle_starter/native-image.properties | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/resources/META-INF/native-image/org.example/gradle_starter/native-image.properties b/src/main/resources/META-INF/native-image/org.example/gradle_starter/native-image.properties index f7030ae..813fa73 100644 --- a/src/main/resources/META-INF/native-image/org.example/gradle_starter/native-image.properties +++ b/src/main/resources/META-INF/native-image/org.example/gradle_starter/native-image.properties @@ -1,4 +1,12 @@ # Community -Args=-R:MaxHeapSize=16 -march=native +#Args=-R:MaxHeapSize=16 -march=native # Oracle -#Args=-march=native --gc=G1 +Args= \ + -H:+UnlockExperimentalVMOptions \ + -march=native \ + --gc=G1 \ + --enable-sbom \ + --strict-image-heap \ + --initialize-at-build-time=kotlin.SynchronizedLazyImpl \ + --initialize-at-build-time=kotlin.UNINITIALIZED_VALUE \ + --initialize-at-build-time=com.hexagonkt.core.ClasspathHandler$classLoader$2