提交 90f2f6f0 编写于 作者: M mbaesken

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

Reviewed-by: alanb, clanger, bobv
上级 c2772669
...@@ -1756,9 +1756,15 @@ void os::win32::print_windows_version(outputStream* st) { ...@@ -1756,9 +1756,15 @@ void os::win32::print_windows_version(outputStream* st) {
case 6004: case 6004:
if (is_workstation) { if (is_workstation) {
st->print("10"); st->print("10");
} else {
// distinguish Windows Server 2016 and 2019 by build number
// Windows server 2019 GA 10/2018 build number is 17763
if (build_number > 17762) {
st->print("Server 2019");
} else { } else {
st->print("Server 2016"); st->print("Server 2016");
} }
}
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册