JDK-8221408 : Windows 32bit build build errors/warnings in hotspot
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2019-03-25
  • Updated: 2021-01-11
  • Resolved: 2019-03-29
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 13 JDK 8 Other
11.0.5Fixed 13 b15Fixed 8u281Fixed openjdk8u292Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Windows 32bit, debug build shows various errors and warnings:

- "C4172: returning address of local variable or temporary" on  address os::current_stack_pointer()

- cast errors in ClassFileParser::parse_constant_pool_entries

- weird narrowing warning in vmStructs.cpp when storing markOopDesc::hash_mask_in_place in a uint64_t
Comments
Fix Request (8u) I would like to backport this patch to 8u for parity with Oracle 8u281. The original patch does not apply cleanly. 8u patch has been reviewed and approved by @phh.
25-11-2020

8u review continuations: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-September/012627.html https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-November/013055.html
24-11-2020

8u code review: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-August/012597.html
31-08-2020

Fix Request I would like to downport this change as it fixes warnings of the windows 32 bit build. I had to change the syntax of the pragma disabling the warning in os_windows_x86.cpp, because the macros used in jdk13 are not available in jdk11. Thus I requested a review: http://mail.openjdk.java.net/pipermail/jdk-updates-dev/2019-August/001579.html We are using visual studio 17, Version 19.16.27031.1. As this caused a warning on aarch, I will downport 8221725, too. (and push together).
06-08-2019