Mercurial > hg > openjdk > hsx14
changeset 527:2f91f071f4dd
6821003: Update hotspot windows os_win32 for windows 7
Reviewed-by: xlu
author | asaha |
---|---|
date | Tue, 24 Mar 2009 14:58:57 -0700 |
parents | c9ede57210d9 |
children | 06a41dd72256 |
files | src/os/windows/vm/os_windows.cpp |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp Fri Mar 20 12:17:54 2009 -0700 +++ b/src/os/windows/vm/os_windows.cpp Tue Mar 24 14:58:57 2009 -0700 @@ -1491,7 +1491,8 @@ case 5000: st->print(" Windows 2000"); break; case 5001: st->print(" Windows XP"); break; case 5002: - case 6000: { + case 6000: + case 6001: { // Retrieve SYSTEM_INFO from GetNativeSystemInfo call so that we could // find out whether we are running on 64 bit processor or not. SYSTEM_INFO si; @@ -1514,13 +1515,22 @@ st->print(" Windows XP x64 Edition"); else st->print(" Windows Server 2003 family"); - } else { // os_vers == 6000 + } else if (os_vers == 6000) { if (osvi.wProductType == VER_NT_WORKSTATION) st->print(" Windows Vista"); else st->print(" Windows Server 2008"); if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64) st->print(" , 64 bit"); + } else { // os_vers == 6001 + if (productType == VER_NT_WORKSTATION) { + st->print(" Windows 7"); + } else { + // Unrecognized windows, print out its major and minor versions + st->print(" Windows NT %d.%d", osvi.dwMajorVersion, osvi.dwMinorVersion); + } + if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64) + st->print(" , 64 bit"); } break; }