Integrated: 8277370: configure script cannot distinguish WSL version

Yasumasa Suenaga ysuenaga at openjdk.java.net
Fri Nov 19 20:28:13 UTC 2021


On Thu, 18 Nov 2021 07:17:07 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:

> configure script distinguish WSL version if it is run on WSL. It is assumed WSL 2 if `/run/WSL` exists.
> However it exists in spite of WSL 1 on Windows 11 at least. We need to check it with other method.
> 
> The method to distinguish WSL version has been discussed on https://github.com/microsoft/WSL/issues/4555 , however they do not seem to get consensus about it. `/run/WSL` was introduced in it, but I think `Hyper-V` in `/proc/interrupt` is more robustness because WSL 2 is run on Hyper-V. https://docs.microsoft.com/en-us/windows/wsl/faq#does-wsl-2-use-hyper-v--will-it-be-available-on-windows-10-home-

This pull request has now been integrated.

Changeset: 2d4af225
Author:    Yasumasa Suenaga <ysuenaga at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/2d4af2255feb2eaeca533424f8cba3ec0945d757
Stats:     5 lines in 1 file changed: 1 ins; 0 del; 4 mod

8277370: configure script cannot distinguish WSL version

Reviewed-by: erikj

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

PR: https://git.openjdk.java.net/jdk/pull/6446



More information about the build-dev mailing list