Re: RFR: JDK-8273229: Update OS detection code to recognize Windows Server 2022 [v2]

2021-09-02 Thread David Holmes
On Thu, 2 Sep 2021 08:16:52 GMT, Matthias Baesken  wrote:

>> Hello, please review this small change.
>> The OS detection code of the JDK/JVM should recognize the new Windows server 
>> 2022 :
>> 
>> https://docs.microsoft.com/en-us/lifecycle/products/windows-server-2022
>> https://docs.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
>> 
>> The build number of Windows server 2022 according to the documentation in 
>> the second link is 20348 .
>> Thanks, Matthias
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Adjust comments

Thanks for the updates

-

Marked as reviewed by dholmes (Reviewer).

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


Re: RFR: JDK-8273229: Update OS detection code to recognize Windows Server 2022 [v2]

2021-09-02 Thread Matthias Baesken
On Thu, 2 Sep 2021 07:49:55 GMT, David Holmes  wrote:

>> Matthias Baesken has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Adjust comments
>
> src/hotspot/os/windows/os_windows.cpp line 1871:
> 
>> 1869:   // distinguish Windows Server 2016, 2019 and 2022 by build number
>> 1870:   // Windows server 2019 GA 10/2018 build number is 17763
>> 1871:   // Windows server 2022 build number is 20348
> 
> Perhaps to avoid too much future editing:
> 
> // Distinguish Windows Server by build number:
> // - 2016 GA 10/2016 build: 14393
> // - 2019 GA 11/2018 build: 17763
> // - 2022 GA 08/2021 build: 20348

Hi David , thanks for your suggestions. I  adjusted the comments.

Best regards, Matthias

-

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


Re: RFR: JDK-8273229: Update OS detection code to recognize Windows Server 2022 [v2]

2021-09-02 Thread Matthias Baesken
> Hello, please review this small change.
> The OS detection code of the JDK/JVM should recognize the new Windows server 
> 2022 :
> 
> https://docs.microsoft.com/en-us/lifecycle/products/windows-server-2022
> https://docs.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
> 
> The build number of Windows server 2022 according to the documentation in the 
> second link is 20348 .
> Thanks, Matthias

Matthias Baesken has updated the pull request incrementally with one additional 
commit since the last revision:

  Adjust comments

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5347/files
  - new: https://git.openjdk.java.net/jdk/pull/5347/files/c7ce4abc..f8952e3e

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=5347=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=5347=00-01

  Stats: 5 lines in 2 files changed: 1 ins; 0 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5347.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5347/head:pull/5347

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


Re: RFR: JDK-8273229: Update OS detection code to recognize Windows Server 2022

2021-09-02 Thread David Holmes
On Thu, 2 Sep 2021 06:43:16 GMT, Matthias Baesken  wrote:

> Hello, please review this small change.
> The OS detection code of the JDK/JVM should recognize the new Windows server 
> 2022 :
> 
> https://docs.microsoft.com/en-us/lifecycle/products/windows-server-2022
> https://docs.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
> 
> The build number of Windows server 2022 according to the documentation in the 
> second link is 20348 .
> Thanks, Matthias

Hi Matthias,

Some minor suggestions but okay as-is.

Thanks,
David

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

> 1869:   // distinguish Windows Server 2016, 2019 and 2022 by build number
> 1870:   // Windows server 2019 GA 10/2018 build number is 17763
> 1871:   // Windows server 2022 build number is 20348

Perhaps to avoid too much future editing:

// Distinguish Windows Server by build number:
// - 2016 GA 10/2016 build: 14393
// - 2019 GA 11/2018 build: 17763
// - 2022 GA 08/2021 build: 20348

src/java.base/windows/native/libjava/java_props_md.c line 478:

> 476:  *   where (buildNumber > 17762)
> 477:  * Windows Server 2022  10  0  
> (!VER_NT_WORKSTATION)
> 478:  *   where (buildNumber > 20347)

There is a comment at line 392 that you may want to adjust too - perhaps just 
say "Windows Server 2016+" to avoid the need to keep updating it.

-

Marked as reviewed by dholmes (Reviewer).

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


Re: RFR: JDK-8273229: Update OS detection code to recognize Windows Server 2022

2021-09-02 Thread Alan Bateman
On Thu, 2 Sep 2021 06:43:16 GMT, Matthias Baesken  wrote:

> Hello, please review this small change.
> The OS detection code of the JDK/JVM should recognize the new Windows server 
> 2022 :
> 
> https://docs.microsoft.com/en-us/lifecycle/products/windows-server-2022
> https://docs.microsoft.com/en-us/windows-server/get-started/windows-server-release-info
> 
> The build number of Windows server 2022 according to the documentation in the 
> second link is 20348 .
> Thanks, Matthias

The link to the "Windows Server release information" page is useful to check 
the build number - thanks!

-

Marked as reviewed by alanb (Reviewer).

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


RFR: JDK-8273229: Update OS detection code to recognize Windows Server 2022

2021-09-02 Thread Matthias Baesken
Hello, please review this small change.
The OS detection code of the JDK/JVM should recognize the new Windows server 
2022 :

https://docs.microsoft.com/en-us/lifecycle/products/windows-server-2022
https://docs.microsoft.com/en-us/windows-server/get-started/windows-server-release-info

The build number of Windows server 2022 according to the documentation in the 
second link is 20348 .
Thanks, Matthias

-

Commit messages:
 - JDK-8273229

Changes: https://git.openjdk.java.net/jdk/pull/5347/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk=5347=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8273229
  Stats: 11 lines in 2 files changed: 8 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5347.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5347/head:pull/5347

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