RFR(s): 8221408: Windows 32bit build build errors/warnings in hotspot

David Holmes david.holmes at oracle.com
Tue Mar 26 06:22:29 UTC 2019


Hi Thomas,

Thanks for trying with latest compiler version.

On 25/03/2019 11:17 pm, Thomas Stüfe wrote:
> Hi all,
> 
> may I please have reviews for the following build fixes for Windows 32bit:
> 
> Issue:https://bugs.openjdk.java.net/browse/JDK-8221408
> cr:
> http://cr.openjdk.java.net/~stuefe/webrevs/8221408-win32-hotspot-buildfixes/webrev.00/webrev/

src/hotspot/os_cpu/windows_x86/os_windows_x86.cpp

I see now this change is in #ifndef AMD64 so will only be executed in 
32-bit.

I have to wonder if we can simply appease the compiler by doing this:

address os::current_stack_pointer() {
     int dummy;
!   intptr_t addr = (intptr_t) &dummy;
!   return (address) addr;
}

?

---

  src/hotspot/share/classfile/classFileParser.cpp

Ok. As Kim mentioned this had been flagged previously but left alone (I 
thought perhaps the gcc 8.2 testing ...).

---

src/hotspot/share/runtime/vmStructs.hpp

Adding the cast is at least consistent with the int32_t casts we add for 
GENERATE_VM_INT_CONSTANT* but it does make me think we should then also 
add it to GENERATE_PREPROCESSOR_VM_LONG_CONSTANT_ENTRY.

Thanks,
David
-----


> Thank you,
> 
> Thomas
> 


More information about the hotspot-runtime-dev mailing list