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

Calvin Cheung ccheung at openjdk.org
Fri Feb 28 00:37:24 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:

  @magius and @iklam comments

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

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

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

  Stats: 15 lines in 6 files changed: 10 ins; 2 del; 3 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 build-dev mailing list