RFR: 8348028: Unable to run gtests with CDS enabled [v4]
Aleksey Shipilev
shade at openjdk.org
Wed Apr 2 07:29:25 UTC 2025
On Fri, 28 Feb 2025 00:37:24 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
>
> Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
>
> @magius and @iklam comments
Well, this apparently broke CDS archive generation / use in my multi-JVM builds. Looking for CDS archives in vicinity of currently launched libjvm.so is a feature that got unfortunately broken by this. Filed: https://bugs.openjdk.org/browse/JDK-8353504
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23758#issuecomment-2771575425
More information about the hotspot-runtime-dev
mailing list