RFR: 8348028: Unable to run gtests with CDS enabled
Coleen Phillimore
coleenp at openjdk.org
Tue Feb 25 23:16: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
src/hotspot/os/aix/os_aix.cpp line 1356:
> 1354: // Use current module name "libjvm.so"
> 1355: len = strlen(buf);
> 1356: snprintf(buf + len, buflen-len, "/server/libjvm.so");
Still no idea what this is supposed to do but there's a comment above at 1317 that should be fixed too.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23758#discussion_r1970672190
More information about the hotspot-runtime-dev
mailing list