JDK-8211124 : HotSpot vm_version.cpp should recognise updated VS2017
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-09-25
  • Updated: 2020-04-12
  • Resolved: 2018-09-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12 JDK 7 JDK 8
11.0.2Fixed 12 b14Fixed 7u211Fixed 8u202Fixed
Description
HotSpot needs an update for Windows compiler versions:
open/src/hotspot/share/runtime/vm_version.cpp
recognises the Windows compiler VS2017 as _MSC_VER 1912.

VS 15.6.1 == 1913

My VS2017 Version 15.6.1 has:

** Visual Studio 2017 Developer Command Prompt v15.6.1

$ cl.exe
Microsoft (R) C/C++ Optimizing Compiler Version 19.13.26128 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

We need to update open/src/hotspot/share/runtime/vm_version.cpp to avoid seeing "unknown MS VC++" in the long VM version string.

In case I find reference to the link version in the src, thiis comes with link.exe:

Microsoft (R) Incremental Linker Version 14.13.26128.0


Comments
Fix Request Request to push to 11u to avoid a regression compared to 8u. Simple ifdef updates, low risk, no test coverage. Patch applies cleanly.
26-10-2018