RFR: 8340383: VM issues warning failure to find kernel32.dll on Windows nanoserver
Martijn Verburg
karianna at openjdk.org
Wed Sep 18 20:02:12 UTC 2024
On Wed, 18 Sep 2024 16:57:00 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
detection logic extraction
src/hotspot/os/windows/os_windows.cpp line 4112:
> 4110: strncat(kernel32_path, "\\kernel32.dll", MAX_PATH - ret);
> 4111: // On Windows Nanoserver the kernel32.dll is located in the forwarders subdirectory
> 4112: if (!os::file_exists(kernel32_path)) {
Should this detection logic be extracted for other scenarios wher we need to special case nano?
-------------
PR Review: https://git.openjdk.org/jdk/pull/21070#pullrequestreview-2313655147
PR Review Comment: https://git.openjdk.org/jdk/pull/21070#discussion_r1765634764
More information about the hotspot-runtime-dev
mailing list