RFR: 8280476: [macOS] : hotspot arm64 bug exposed by latest clang
Andrew Haley
aph at openjdk.java.net
Sat Jan 29 10:51:10 UTC 2022
On Sat, 29 Jan 2022 08:16:26 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
>> A trivial fix to solve undefined behavior in src/hotspot/cpu/aarch64/immediate_aarch64.cpp:
>> replicate().
>>
>> I was not able to reproduce the reported failure using:
>>
>> Xcode: Version 13.2.1 (13C100) which includes clang Apple LLVM 13.0.0 (clang-1300.0.29.30)
>>
>> so I'm moving forward with the proposed fix from a code inspection
>> point of view.
>>
>> I've tested this fix with Mach5 Tier[1-6]. Tier1 and Tier2 have completed with
>> no failures. Tier[3-6] are still running.
>
> src/hotspot/cpu/aarch64/immediate_aarch64.cpp line 136:
>
>> 134: if (nbits == 64) {
>> 135: assert(count <= 1, "must be");
>> 136: return bits;
>
> For consistency with the < 64 case, shouldn't this be `return (count == 0) ? 0 : bits;` ?
Probably, but that's an algorithmic question we'll need @adinn to answer.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7270
More information about the hotspot-runtime-dev
mailing list