jdk icon indicating copy to clipboard operation
jdk copied to clipboard

8279366: CDS should allow alternative locations for JAR files in classpath

Open calvinccheung opened this issue 3 years ago • 4 comments

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 for an example.

Passed tiers 1 - 4 testing (including the new tests).


Progress

  • [ ] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-8279366: CDS should allow alternative locations for JAR files in classpath

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10615/head:pull/10615
$ git checkout pull/10615

Update a local copy of the PR:
$ git checkout pull/10615
$ git pull https://git.openjdk.org/jdk pull/10615/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 10615

View PR using the GUI difftool:
$ git pr show -t 10615

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10615.diff

calvinccheung avatar Oct 07 '22 22:10 calvinccheung

/label add hotspot-runtime

calvinccheung avatar Oct 07 '22 22:10 calvinccheung

:wave: Welcome back ccheung! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Oct 08 '22 15:10 bridgekeeper[bot]

@calvinccheung The hotspot-runtime label was successfully added.

openjdk[bot] avatar Oct 08 '22 19:10 openjdk[bot]

Webrevs

mlbridge[bot] avatar Oct 09 '22 02:10 mlbridge[bot]

@calvinccheung This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8279366: CDS should allow alternative locations for JAR files in classpath

Reviewed-by: iklam, coleenp

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 174 new commits pushed to the master branch:

  • 6289600fe86bf1f8de160ea64cdba960b2d3e693: 8295810: cleanup debug agent removeThread() api
  • 5c4d99a05185cc5fc41691fd62102f3b5bbefc50: 8295118: G1: Clear CLD claim marks concurrently
  • af2de975cbc46ad91c736b110a2212cd32ba60a7: 8287754: Update jib GNU make dependency on Windows to latest cygwin build
  • 9051dded84ef2d248483a6a1472def1eab79654f: 8294993: LingeredApp test update
  • f37a6055c469956a1e69715840a61f56b5cea425: 8295212: G1: Add wrapper for TruncatedSeqs that need separation by gc phase
  • 6673cd857722d117b108590ba7f7c02f8622fc3b: 8295554: Move the "sizecalc.h" to the correct location
  • 706d1b7508af58f7ed669bde4820ec9f80f58607: 8295798: (ch) Test java/nio/channels/Channels/ReadXBytes.java is very slow on Windows
  • 89dafc002f934f7381a150e3f04fd1f830d183a4: 8292699: Improve printing of classes in native debugger
  • 7520d0a72573ebaec0b6d9f9f1f1d87688bff8c0: 8295855: ProblemList jdk/jshell/CommandCompletionTest.java on linux-all
  • 1d15e5cdd698045ab9c285c92b96126ed0666ac5: 8295716: Minimize disabled warnings in security libs
  • ... and 164 more: https://git.openjdk.org/jdk/compare/90fb9a085bbaa9d1928a1cec9f00098b80577721...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

openjdk[bot] avatar Oct 19 '22 17:10 openjdk[bot]

Thanks Ioi, Coleen, Matias for the review!

/integrate

calvinccheung avatar Oct 25 '22 17:10 calvinccheung

Going to push as commit 427f50624f9f60bb3502227fd04a04991986329c. Since your change was applied there have been 175 commits pushed to the master branch:

  • 3a873d3c5b2281b2389e9364ff26f04ee86b0607: 8295808: GrowableArray should support capacity management
  • 6289600fe86bf1f8de160ea64cdba960b2d3e693: 8295810: cleanup debug agent removeThread() api
  • 5c4d99a05185cc5fc41691fd62102f3b5bbefc50: 8295118: G1: Clear CLD claim marks concurrently
  • af2de975cbc46ad91c736b110a2212cd32ba60a7: 8287754: Update jib GNU make dependency on Windows to latest cygwin build
  • 9051dded84ef2d248483a6a1472def1eab79654f: 8294993: LingeredApp test update
  • f37a6055c469956a1e69715840a61f56b5cea425: 8295212: G1: Add wrapper for TruncatedSeqs that need separation by gc phase
  • 6673cd857722d117b108590ba7f7c02f8622fc3b: 8295554: Move the "sizecalc.h" to the correct location
  • 706d1b7508af58f7ed669bde4820ec9f80f58607: 8295798: (ch) Test java/nio/channels/Channels/ReadXBytes.java is very slow on Windows
  • 89dafc002f934f7381a150e3f04fd1f830d183a4: 8292699: Improve printing of classes in native debugger
  • 7520d0a72573ebaec0b6d9f9f1f1d87688bff8c0: 8295855: ProblemList jdk/jshell/CommandCompletionTest.java on linux-all
  • ... and 165 more: https://git.openjdk.org/jdk/compare/90fb9a085bbaa9d1928a1cec9f00098b80577721...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Oct 25 '22 17:10 openjdk[bot]

@calvinccheung Pushed as commit 427f50624f9f60bb3502227fd04a04991986329c.

:bulb: You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

openjdk[bot] avatar Oct 25 '22 17:10 openjdk[bot]