Add java21-to-25 module: compile-once probes on JDK 21 and 25, removed APIs, build matrix, pinning, compact headers and containers

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
Claude
2026-12-03 09:26:21 +05:30
parent d4b8552957
commit 3502fd7804
46 changed files with 1371 additions and 0 deletions
+77
View File
@@ -0,0 +1,77 @@
# 02-startup-flags: flag, then for each JDK the exit code and the first line the JVM printed (if any)
--- -Djava.security.manager=allow
[21.0.13.1] exit 0
[25.0.5.1] exit 1 Error occurred during initialization of VM
--- -XX:+UseZGC -XX:+ZGenerational
[21.0.13.1] exit 0
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Ignoring option ZGenerational; support was removed in 24.0
--- -XX:+UseZGC -XX:-ZGenerational
[21.0.13.1] exit 0
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Ignoring option ZGenerational; support was removed in 24.0
--- -XX:+UseCompactObjectHeaders
[21.0.13.1] exit 1 Unrecognized VM option 'UseCompactObjectHeaders'
[25.0.5.1] exit 0
--- -XX:+UnlockExperimentalVMOptions -XX:+UseCompactObjectHeaders
[21.0.13.1] exit 1 Unrecognized VM option 'UseCompactObjectHeaders'
[25.0.5.1] exit 0
--- -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
[21.0.13.1] exit 1 Error occurred during initialization of VM
[25.0.5.1] exit 0
--- -XX:+UseStringDeduplication
[21.0.13.1] exit 0
[25.0.5.1] exit 0
--- -XX:+UseLargePagesIndividualAllocation
[21.0.13.1] exit 0
[25.0.5.1] exit 0
--- -XX:+UseNeon
[21.0.13.1] exit 1 Unrecognized VM option 'UseNeon'
[25.0.5.1] exit 1 Unrecognized VM option 'UseNeon'
--- -XX:LockingMode=2
[21.0.13.1] exit 1 Error: VM option 'LockingMode' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option LockingMode was deprecated in version 24.0 and will likely be removed in a future release.
--- -XX:+UseEmptySlotsInSupers
[21.0.13.1] exit 0
[25.0.5.1] exit 1 Unrecognized VM option 'UseEmptySlotsInSupers'
--- -XX:+UseOprofile
[21.0.13.1] exit 0
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option UseOprofile was deprecated in version 25.0 and will likely be removed in a future release.
--- -XX:+DontYieldALot
[21.0.13.1] exit 0
[25.0.5.1] exit 1 Unrecognized VM option 'DontYieldALot'
--- -Xnoagent
[21.0.13.1] exit 0
[25.0.5.1] exit 1 Unrecognized option: -Xnoagent
--- -XX:+RegisterFinalizersAtInit
[21.0.13.1] exit 0
[25.0.5.1] exit 1 Unrecognized VM option 'RegisterFinalizersAtInit'
--- -XX:+UseCompressedClassPointers
[21.0.13.1] exit 0
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option UseCompressedClassPointers was deprecated in version 25.0 and will likely be removed in a future release.
--- -XX:-UseCompressedClassPointers
[21.0.13.1] exit 0
[25.0.5.1] exit 0 OpenJDK 64-Bit Server VM warning: Option UseCompressedClassPointers was deprecated in version 25.0 and will likely be removed in a future release.
--- -XX:+PreserveAllAnnotations
[21.0.13.1] exit 0
[25.0.5.1] exit 1 Unrecognized VM option 'PreserveAllAnnotations'
--- -XX:+UseAdaptiveSizePolicyWithSystemGC
[21.0.13.1] exit 0
[25.0.5.1] exit 0
--- -XX:+EnableDynamicAgentLoading
[21.0.13.1] exit 0
[25.0.5.1] exit 0
--- --sun-misc-unsafe-memory-access=allow
[21.0.13.1] exit 1 Unrecognized option: --sun-misc-unsafe-memory-access=allow
[25.0.5.1] exit 0
--- --enable-native-access=ALL-UNNAMED
[21.0.13.1] exit 0
[25.0.5.1] exit 0
--- --illegal-native-access=deny
[21.0.13.1] exit 1 Unrecognized option: --illegal-native-access=deny
[25.0.5.1] exit 0
--- -Djdk.tracePinnedThreads=full
[21.0.13.1] exit 0
[25.0.5.1] exit 0
--- JDK 25: compact object headers together with -XX:-UseCompressedClassPointers
OpenJDK 64-Bit Server VM warning: Compact object headers require compressed class pointers. Disabling compact object headers.
--- JDK 25: CDS archive picked up with compact headers
trying to map <jdk25>/lib/server/classes_coh.jsa