RFR: 8278381: [GCC 11] Address::make_raw() does not initialize rspec

Xin Liu xliu at openjdk.java.net
Fri Dec 10 17:22:16 UTC 2021


On Thu, 9 Dec 2021 22:19:57 GMT, Dan Lutker <duke at openjdk.java.net> wrote:

> The issue was encountered on OpenJDK11 with the error below, there is no error in tip because of the changes in [8240669](https://bugs.openjdk.java.net/browse/JDK-8240669). Fixing here for correctness and to backport.
> 
> .../src/hotspot/cpu/x86/assembler_x86.cpp: In static member function 'static Address Address::make_raw(int, int, int, int, relocInfo::relocType)':
> .../src/hotspot/cpu/x86/assembler_x86.cpp:189:20: error: 'rspec.RelocationHolder::_relocbuf[3]' is used uninitialized [-Werror=uninitialized]
>  189 |  RelocationHolder rspec;
>    |          ^~~~~
> ...src/hotspot/cpu/x86/assembler_x86.cpp:189:20: error: 'rspec.RelocationHolder::_relocbuf[2]' is used uninitialized [-Werror=uninitialized]

LGTM.

-------------

Marked as reviewed by xliu (Committer).

PR: https://git.openjdk.java.net/jdk/pull/6785


More information about the hotspot-compiler-dev mailing list