RFR: 8378833: Improve offset arithmetic in ArraysSupport::mismatch

Roger Riggs rriggs at openjdk.org
Fri Feb 27 16:21:52 UTC 2026


On Fri, 27 Feb 2026 12:35:51 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

> Some of the `ArraysSupport::mismatch` family of methods compute offsets using a mix of `int` and `long` arithmetic.
> This can lead to wrong results, which are then passed as arguments to an intrinsic method or to a Java method using `Unsafe`.

looks good

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29957#pullrequestreview-3867803491


More information about the core-libs-dev mailing list