RFR: 8279366: CDS should allow alternative locations for JAR files in classpath [v4]

Calvin Cheung ccheung at openjdk.org
Wed Oct 19 16:36:56 UTC 2022


> Please review this RFE for allowing alternative locations for jar files in the app classpath during runtime.
> 
> During dump time, the longest common prefix of the app classpath will be stored in the CDS archive header. During runtime, existing checks of the app classpath will be performed first. Upon failure, the longest common prefix of the runtime app classpath will be computed and another check of the app classpath will be performed ignoring the longest common prefix.
> 
> Refer to the [bug report comment](https://bugs.openjdk.org/browse/JDK-8279366?focusedCommentId=14509536&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14509536) for an example.
> 
> Passed tiers 1 - 4 testing (including the new tests).

Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:

  merge check_paths_ignoring_common_prefix() into check_paths()

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/10615/files
  - new: https://git.openjdk.org/jdk/pull/10615/files/11faf0cb..59fad702

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10615&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10615&range=02-03

  Stats: 41 lines in 2 files changed: 7 ins; 24 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/10615.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10615/head:pull/10615

PR: https://git.openjdk.org/jdk/pull/10615


More information about the hotspot-runtime-dev mailing list