RFR: 8348028: Unable to run gtests with CDS enabled
David Holmes
dholmes at openjdk.org
Wed Feb 26 00:19:52 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
I remain baffled by what the logic in `os::jvm_path` is trying to do for the altjvm case. It is almost like it sets up the dummy hotspot/libjvm.so so that "hotspot" can later be replaced by the actual altjvm value - because os::jvm_path has no idea what that is.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23758#issuecomment-2683579096
More information about the hotspot-runtime-dev
mailing list