RFR: 8348028: Unable to run gtests with CDS enabled
Coleen Phillimore
coleenp at openjdk.org
Tue Feb 25 22:56:53 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
-XXaltjvm=X should find libjvm.so in $JAVA_HOME/{lib,bin}/X/libjvm.so
Where the minimal build is this:
-XXaltjvm=minimal
I thought that's how it used to work. I'm surprised this code still exists.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23758#issuecomment-2683474649
More information about the hotspot-runtime-dev
mailing list