Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save apple-corps/5cf1fe1498f01f068ce183d00fc1d624 to your computer and use it in GitHub Desktop.
Save apple-corps/5cf1fe1498f01f068ce183d00fc1d624 to your computer and use it in GitHub Desktop.
native-image-local-graal-latest-0.20.1.0
native-image -H:+ReportExceptionStackTraces -H:+AddAllCharsets --allow-incomplete-classpath --no-fallback --initialize-at-build-time --enable-http --enable-https --enable-all-security-services --verbose -jar "./target/scala-2.13/quickstart-assembly-0.0.1-SNAPSHOT.jar" quickstartBinaryImage
Apply jar:file:///tmp/quickstart/target/scala-2.13/quickstart-assembly-0.0.1-SNAPSHOT.jar!/META-INF/native-image/com/example/quickstart/reflect-config.json
StartServer [
/usr/lib/jvm/graalvm-ce-java11-20.1.0/bin/java \
-cp \
/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/svm.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/objectfile.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/pointsto.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/svm-llvm.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/llvm-wrapper-shadowed.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/javacpp-shadowed.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/llvm-platform-specific-shadowed.jar \
-XX:+UseParallelGC \
-XX:+UnlockExperimentalVMOptions \
-XX:+EnableJVMCI \
-Dtruffle.TrustAllTruffleRuntimeProviders=true \
-Dtruffle.TruffleRuntime=com.oracle.truffle.api.impl.DefaultTruffleRuntime \
-Dgraalvm.ForcePolyglotInvalid=true \
-Dgraalvm.locatorDisabled=true \
-Dsubstratevm.IgnoreGraalVersionCheck=true \
-Djava.lang.invoke.stringConcat=BC_SB \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.runtime=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.code=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.aarch64=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.amd64=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.hotspot=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.services=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.common=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.code.site=ALL-UNNAMED \
--add-exports \
jdk.internal.vm.ci/jdk.vm.ci.code.stack=ALL-UNNAMED \
--add-opens \
jdk.internal.vm.compiler/org.graalvm.compiler.debug=ALL-UNNAMED \
--add-opens \
jdk.internal.vm.compiler/org.graalvm.compiler.nodes=ALL-UNNAMED \
--add-opens \
jdk.unsupported/sun.reflect=ALL-UNNAMED \
--add-opens \
java.base/jdk.internal.module=ALL-UNNAMED \
--add-opens \
java.base/jdk.internal.ref=ALL-UNNAMED \
--add-opens \
java.base/jdk.internal.reflect=ALL-UNNAMED \
--add-opens \
java.base/java.io=ALL-UNNAMED \
--add-opens \
java.base/java.lang=ALL-UNNAMED \
--add-opens \
java.base/java.lang.reflect=ALL-UNNAMED \
--add-opens \
java.base/java.lang.invoke=ALL-UNNAMED \
--add-opens \
java.base/java.lang.ref=ALL-UNNAMED \
--add-opens \
java.base/java.net=ALL-UNNAMED \
--add-opens \
java.base/java.nio=ALL-UNNAMED \
--add-opens \
java.base/java.nio.file=ALL-UNNAMED \
--add-opens \
java.base/java.security=ALL-UNNAMED \
--add-opens \
java.base/javax.crypto=ALL-UNNAMED \
--add-opens \
java.base/java.util=ALL-UNNAMED \
--add-opens \
java.base/java.util.concurrent.atomic=ALL-UNNAMED \
--add-opens \
java.base/sun.security.x509=ALL-UNNAMED \
--add-opens \
java.base/jdk.internal.logger=ALL-UNNAMED \
--add-opens \
org.graalvm.sdk/org.graalvm.nativeimage.impl=ALL-UNNAMED \
--add-opens \
org.graalvm.sdk/org.graalvm.polyglot=ALL-UNNAMED \
--add-opens \
org.graalvm.truffle/com.oracle.truffle.polyglot=ALL-UNNAMED \
--add-opens \
org.graalvm.truffle/com.oracle.truffle.api.impl=ALL-UNNAMED \
-XX:+UseJVMCINativeLibrary \
-Xss10m \
-Duser.country=US \
-Duser.language=en \
-Djava.awt.headless=true \
-Dorg.graalvm.version=20.1.0 \
-Dorg.graalvm.config= \
-Dcom.oracle.graalvm.isaot=true \
-Djava.system.class.loader=com.oracle.svm.hosted.NativeImageSystemClassLoader \
-Xshare:off \
--module-path \
/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/truffle/truffle-api.jar \
-javaagent:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/svm.jar \
-Djdk.internal.lambda.disableEagerInitialization=true \
-Djdk.internal.lambda.eagerlyInitialize=false \
-Djava.lang.invoke.InnerClassLambdaMetafactory.initializeLambdas=false \
-Xmx6577086464 \
-Xms1g \
-Dgraal.LogFile=%e \
com.oracle.svm.hosted.server.NativeImageBuildServer \
-port=0 \
-logFile=/home/colin/.native-image/machine-id-7f00aa272b454c6090376648314c685f/session-id-2e1a/server-id-8c80288a226c93a100a624a3786c04a0ad6dd742f65c7fcccc4e1bca7e4708065a932597e3a91cda5dc2abd8fc8156e924fde240dc0f3f573e06417f5b3902b4/server.log \
]
Build on Server(pid: 12168, port: 38183)*
SendBuildRequest [
-task=com.oracle.svm.hosted.NativeImageGeneratorRunner
-imagecp
/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/svm.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/objectfile.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/pointsto.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/svm-llvm.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/llvm-wrapper-shadowed.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/javacpp-shadowed.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/builder/llvm-platform-specific-shadowed.jar:/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/library-support.jar:/tmp/quickstart/target/scala-2.13/quickstart-assembly-0.0.1-SNAPSHOT.jar
-H:Path=/tmp/quickstart
-H:+ReportExceptionStackTraces
-H:+AddAllCharsets
-H:+AllowIncompleteClasspath
-H:FallbackThreshold=0
-H:ClassInitialization=:build_time
-H:EnableURLProtocols=http
-H:EnableURLProtocols=https
-H:+EnableAllSecurityServices
-H:Class=com.example.quickstart.Main
-H:ReflectionConfigurationResources=META-INF/native-image/com/example/quickstart/reflect-config.json
-H:CLibraryPath=/usr/lib/jvm/graalvm-ce-java11-20.1.0/lib/svm/clibraries/linux-amd64
-H:Name=quickstartBinaryImage
]
[quickstartBinaryImage:12168] classlist: 7,595.23 ms, 0.95 GB
[quickstartBinaryImage:12168] (cap): 920.97 ms, 0.95 GB
[quickstartBinaryImage:12168] setup: 3,298.14 ms, 0.94 GB
WARNING GR-10238: VarHandle for static field is currently not fully supported. Static field private static volatile java.lang.System$Logger jdk.internal.event.EventHelper.securityLogger is not properly marked for Unsafe access!
[quickstartBinaryImage:12168] (clinit): 1,781.71 ms, 2.58 GB
[quickstartBinaryImage:12168] (typeflow): 25,021.98 ms, 2.58 GB
[quickstartBinaryImage:12168] (objects): 30,062.49 ms, 2.58 GB
[quickstartBinaryImage:12168] (features): 1,894.92 ms, 2.58 GB
[quickstartBinaryImage:12168] analysis: 61,096.53 ms, 2.58 GB
[quickstartBinaryImage:12168] universe: 1,786.84 ms, 2.58 GB
[quickstartBinaryImage:12168] (parse): 8,037.34 ms, 2.91 GB
[quickstartBinaryImage:12168] (inline): 16,306.76 ms, 3.62 GB
[quickstartBinaryImage:12168] (compile): 34,413.31 ms, 3.72 GB
[quickstartBinaryImage:12168] compile: 61,675.39 ms, 3.72 GB
[quickstartBinaryImage:12168] image: 5,430.58 ms, 3.72 GB
[quickstartBinaryImage:12168] write: 883.68 ms, 3.72 GB
[quickstartBinaryImage:12168] [total]: 142,201.17 ms, 3.72 GB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment