[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-hotspot-runtime-dev
Subject:    Re: RFR: 8280476: [macOS] : hotspot arm64 bug exposed by latest clang
From:       Daniel D.Daugherty <dcubed () openjdk ! java ! net>
Date:       2022-01-29 14:48:11
Message-ID: VJdmfqufxdr6pBLke8mu4K8RPFTodDOXZ1aiOUYiNnE=.88202ade-6437-4969-a52a-4e2704f6b8ab () github ! com
[Download RAW message or body]

On Sat, 29 Jan 2022 08:16:26 GMT, Kim Barrett <kbarrett@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;` ?

@kimbarrett - Thanks for the review! Good catch! I believe you are correct,
but let's wait for @adinn to chime in here.

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

PR: https://git.openjdk.java.net/jdk/pull/7270
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic