Integrated: 8378833: Improve offset arithmetic in ArraysSupport::mismatch
Raffaello Giulietti
rgiulietti at openjdk.org
Sun Mar 1 12:08:27 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`.
This pull request has now been integrated.
Changeset: dbbb3b1a
Author: Raffaello Giulietti <rgiulietti at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/dbbb3b1ac5fd218ed2b3c7247f6602a7a58ca4de
Stats: 13 lines in 1 file changed: 0 ins; 0 del; 13 mod
8378833: Improve offset arithmetic in ArraysSupport::mismatch
Reviewed-by: liach, alanb, rriggs
-------------
PR: https://git.openjdk.org/jdk/pull/29957
More information about the core-libs-dev
mailing list