RFR: 8340383: VM issues warning failure to find kernel32.dll on Windows nanoserver [v2]
George Adams
gdams at openjdk.org
Fri Sep 20 12:12:08 UTC 2024
On Thu, 19 Sep 2024 02:09:12 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Executing in a container environment (per linux experience) can affect a lot of things in the VM. What exactly is NanoServer and is it a supported environment for OpenJDK? The current PR seems a point fix, but do we need to update other logic - e.g. version recognition to identify and report that we are running on NanoServer?
>
> Thanks
Agreed, noting that previous OpenJDK versions have worked just fine in a Nanoserver environment. This was broken by the newly introduced dependency on kernel32.dll. I've refactored the code now to check the registry to determine if the host OS is a nanoserver variant. This will mean that we can rely on the isNanoServer check in other places in the future where required. As things stand this is enough to get Java working again
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21070#issuecomment-2363578702
More information about the hotspot-runtime-dev
mailing list