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

Dan Lutker duke at openjdk.java.net
Fri Dec 10 17:56:15 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]

This pull request has now been integrated.

Changeset: 4f594e6a
Author:    Dan Lutker <lutkerd at amazon.com>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/4f594e6a28ad85d46d3252fb960f1c116f414899
Stats:     2 lines in 2 files changed: 0 ins; 0 del; 2 mod

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

Reviewed-by: phh, xliu

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

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


More information about the hotspot-compiler-dev mailing list