Add graalvm-native-images: Boot 4.1 + GraalVM CE for JDK 25, AOT processing,

the tracing agent, and a real reflection-collision trap

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EQNA6DJ9VgCtW6zhCE8Xud
This commit is contained in:
Claude
2026-09-20 11:03:09 +00:00
parent e4b5636f7c
commit 8cdfcd4d8d
23 changed files with 627 additions and 0 deletions
@@ -0,0 +1,18 @@
$ export JAVA_HOME=/opt/graalvm25 && mvn -Pnative -DskipTests native:compile
[2/8] Performing analysis... [*****] (94.1s @ 2.35GB)
20,126 types, 29,154 fields, and 91,938 methods found reachable
7,495 types, 4,032 fields, and 16,651 methods registered for reflection
68 types, 71 fields, and 58 methods registered for JNI access
0 downcalls and 0 upcalls registered for foreign access
4 native libraries: dl, pthread, rt, z
[6/8] Compiling methods... [**********] (99.2s @ 2.18GB)
30.4s (11.7% of total time) in 1838 GCs | Peak RSS: 4.36GB | CPU load: 1.87
Build artifacts:
/tmp/sbd-work/spring-boot-demo/graalvm-native-images/target/graalvm-native-images (executable)
Finished generating 'graalvm-native-images' in 4m 19s.
[INFO] BUILD SUCCESS
[INFO] Total time: 04:31 min
$ ls -lh target/graalvm-native-images target/app.jar
-rwxr-xr-x 1 root root 93M Sep 20 10:35 target/graalvm-native-images
-rw-r--r-- 1 root root 22M Sep 20 10:31 target/app.jar