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

Alan Bateman alanb at openjdk.org
Fri Feb 27 13:27:25 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`.

Marked as reviewed by alanb (Reviewer).

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

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


More information about the core-libs-dev mailing list