[aarch64-port-dev ] RFR: Fix AArch64 build failure after JDK-8062808 backport

Aleksey Shipilev shade at redhat.com
Mon Jan 4 10:46:57 UTC 2021


On 1/4/21 11:40 AM, Andrew Haley wrote:
> On 1/4/21 9:27 AM, Aleksey Shipilev wrote:
>> So, a trivial fix is to put in the missing addition:
>>
>> diff -r 76dace090781 src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp
>> --- a/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp    Tue Dec 15 20:18:10 2020 +0100
>> +++ b/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp    Mon Jan 04 04:24:42 2021 -0500
>> @@ -207,6 +207,7 @@
>>          return Address(base, tmp, Address::lsl(addr->scale()));
>>        }
>>      }
>> +  return Address();
>>    }
> 
> Ah, another bad code change caused by a bogus compiler diagnostic. (Not the
> compiler's problem, it's because we don't mark ShouldNotReachHere() as
> not returning.
> 
> OK, but there really should be a ShouldNotReachHere() or equiv before

There is ShouldNotReachHere(), on the path that falls-through:
 
http://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/hotspot/file/tip/src/cpu/aarch64/vm/c1_LIRAssembler_aarch64.cpp#l199

I would have put "return" near that "ShouldNotReachHere", but decided to instead match the code that 
ships in all other releases, i.e. the shape that was pushed to JDK 9.

-- 
Thanks,
-Aleksey



More information about the aarch64-port-dev mailing list