RFR: 8340383: VM issues warning failure to find kernel32.dll on Windows nanoserver [v2]

Julian Waters jwaters at openjdk.org
Sat Sep 21 05:54:34 UTC 2024


On Fri, 20 Sep 2024 12:12:07 GMT, George Adams <gdams at openjdk.org> wrote:

>> On Windows Nanoserver the `kernel32.dll` is not within the System32 directory itself but within the "forwarders" sub-folder.
>> 
>> See a similar bug reported in dotnet a while back: https://github.com/dotnet/sdk/issues/6056
>
> George Adams has updated the pull request incrementally with one additional commit since the last revision:
> 
>   refactor to extract nanoserver detection

src/hotspot/os/windows/os_windows.cpp line 4113:

> 4111: 
> 4112:   RegCloseKey(hKey);
> 4113:   return std::string(value, valueLength - 1); // Exclude null terminator

HotSpot code is not allowed to use anything from the C++ Standard Library, aside from very few exceptions. <string\> is unfortunately not one of those exceptions

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21070#discussion_r1769482761


More information about the hotspot-runtime-dev mailing list