JDK-7007229 : Fix warnings with VS2010 in compressedStream.cpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs20
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-12-16
  • Updated: 2011-04-23
  • Resolved: 2011-04-23
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 6 JDK 7 Other
6u25Fixed 7Fixed hs20Fixed
Description
Compilation of compressedStream.cpp fails on VS2010 with:
c:\temp\jprt\p2\b\022033.iv159533\source\src\share\vm\code\compressedstream.cpp(214) : error C2220: warning treated as error - no 'object' file generated
c:\temp\jprt\p2\b\022033.iv159533\source\src\share\vm\code\compressedstream.cpp(214) : warning C4748: /GS can not protect parameters and local variables from local buffer overrun because optimizations are disabled

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/hotspot/rev/5fa559508216
25-12-2010

EVALUATION Interference between the fix for 6993125 and the disabled optimization code fragment in compressedStream.cpp produce warning with VS2010. The solution is to disable the warning for the code fragment.
16-12-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/5fa559508216
16-12-2010