RFR: 8325207: Support out of order classpath in AppCDS.
lingjun-cg
duke at openjdk.org
Fri Apr 26 11:23:09 UTC 2024
When a Java application runs with a wildcard classpath like this:
`java -cp "lib/*"`
JVM will expand "lib/*" to the actual jar list, but the order of the jar list may be different on different hosts, which depends on the underlying filesystem.
Dumping the AppCDS archive is usually done on a CI/CD environment, but using the shared archive is done on a production environment.
If there are many jars with a complex build procedure, ensure the same orders are difficult.
The patch first sorts the runtime classpath and dump classpath, then checks path again.
-------------
Commit messages:
- 8325207: Support out of order classpath in AppCDS.
- 8325207: Support out of order classpath in AppCDS.
Changes: https://git.openjdk.org/jdk/pull/17704/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17704&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8325207
Stats: 111 lines in 4 files changed: 108 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/17704.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17704/head:pull/17704
PR: https://git.openjdk.org/jdk/pull/17704
More information about the hotspot-runtime-dev
mailing list