RFR: 8348028: Unable to run gtests with CDS enabled

David Holmes dholmes at openjdk.org
Tue Feb 25 09:22:54 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

This doesn't look right to me. What if we are in a client-only VM build, or a minimal-VM build?

I'm not even sure hotspot/libjvm.so is meant to be a filesystem path because it doesn't exist in the filesystem image. ??

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

PR Review: https://git.openjdk.org/jdk/pull/23758#pullrequestreview-2640242325


More information about the hotspot-runtime-dev mailing list