8211106: [windows] Update OS detection code to recognize Windows Server 2019

Tue, 02 Oct 2018 13:48:08 +0200

author
mbaesken
date
Tue, 02 Oct 2018 13:48:08 +0200
changeset 9628
04cb6ac03887
parent 9627
d626acee4654
child 9629
8119983116f6

8211106: [windows] Update OS detection code to recognize Windows Server 2019
Reviewed-by: alanb, clanger, bobv

src/os/windows/vm/os_windows.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/os/windows/vm/os_windows.cpp	Wed Feb 12 23:39:53 2014 +0400
     1.2 +++ b/src/os/windows/vm/os_windows.cpp	Tue Oct 02 13:48:08 2018 +0200
     1.3 @@ -1757,7 +1757,13 @@
     1.4      if (is_workstation) {
     1.5        st->print("10");
     1.6      } else {
     1.7 -      st->print("Server 2016");
     1.8 +      // distinguish Windows Server 2016 and 2019 by build number
     1.9 +      // Windows server 2019 GA 10/2018 build number is 17763
    1.10 +      if (build_number > 17762) {
    1.11 +        st->print("Server 2019");
    1.12 +      } else {
    1.13 +        st->print("Server 2016");
    1.14 +      }
    1.15      }
    1.16      break;
    1.17  

mercurial