RFR: 8348028: Unable to run gtests with CDS enabled [v3]

Calvin Cheung ccheung at openjdk.org
Wed Feb 26 19:50:43 UTC 2025


> A simple fix in `os::jvm_path()` so that gtest can be run with CDS (`-Xshare:on`). The fix is just to change the directory name from `hotspot` to `server`.
> Note that the bug doesn't exist on macOS and thus no change is required for `os_bsd.cpp`.
> 
> Testing:
> 
> - run gtest with -Xshare:on on linux-x64
> - tier1

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

  @iklam comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23758/files
  - new: https://git.openjdk.org/jdk/pull/23758/files/2a57876e..4703c943

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

  Stats: 14 lines in 2 files changed: 0 ins; 14 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/23758.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23758/head:pull/23758

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


More information about the hotspot-runtime-dev mailing list