git: openjdk/jdk21u-dev: master: 8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment

Martin Doerr mdoerr at openjdk.org
Fri May 31 17:04:26 UTC 2024


Changeset: 0d9833e5
Author:    Per Minborg <pminborg at openjdk.org>
Committer: Martin Doerr <mdoerr at openjdk.org>
Date:      2024-05-31 17:02:30 +0000
URL:       https://git.openjdk.org/jdk21u-dev/commit/0d9833e522d6401c2ba2495a5b4f058bb489649c

8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment

Reviewed-by: mdoerr
Backport-of: 93579c29e3ba60a8bc16d712e7ffc733f324a223

! src/java.base/share/classes/jdk/internal/foreign/AbstractMemorySegmentImpl.java
! test/jdk/java/foreign/TestMismatch.java



More information about the jdk-updates-changes mailing list