RFR: 8348028: Unable to run gtests with CDS enabled

Julian Waters jwaters at openjdk.org
Tue Feb 25 13:17:51 UTC 2025


On Tue, 25 Feb 2025 00:51:55 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:

> 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

Agree with David, also it's interesting to see that this code expects the JVM to be in a hotspot directory, I don't think I've ever seen any JDK distribution have HotSpot inside a hotspot directory before

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

PR Comment: https://git.openjdk.org/jdk/pull/23758#issuecomment-2681949691


More information about the hotspot-runtime-dev mailing list