RFR: 8280476: [macOS] : hotspot arm64 bug exposed by latest clang [v2]
Daniel D.Daugherty
dcubed at openjdk.java.net
Fri Feb 4 17:25:15 UTC 2022
On Fri, 4 Feb 2022 10:46:22 GMT, Andrew Dinn <adinn at openjdk.org> wrote:
>>> First thing to note is that `replicate` is never actually called with `count == 0`.
>>
>> This is crucial: it means we have no UB.
>>
>> Could I ask you to take the opportunity add a little of this commentary to the rather opaque code? Pretty please? :-)
>
>> Could I ask you to take the opportunity add a little of this commentary to the rather opaque code? Pretty please? :-)
>
> Sure,this stuff really needs to be better documented in the code itself. I'll do that as a follow-up to this PR.
>> First thing to note is that replicate is never actually called with count == 0.
> This is crucial: it means we have no UB.
The UB occurs when `count == 1` and `nbits == 64`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7270
More information about the hotspot-compiler-dev
mailing list