RFR: 8378833: Improve offset arithmetic in ArraysSupport::mismatch
Chen Liang
liach at openjdk.org
Fri Feb 27 12:48:23 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`.
And this is exactly why the base offsets are statically typed long in the first place...
-------------
Marked as reviewed by liach (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29957#pullrequestreview-3866770156
More information about the core-libs-dev
mailing list