Integrated: 8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment
Per Minborg
pminborg at openjdk.org
Mon Mar 25 09:40:25 UTC 2024
On Thu, 21 Mar 2024 09:23:45 GMT, Per Minborg <pminborg at openjdk.org> wrote:
> This PR proposes to remove an old optimization check that was incorrect making `AbstractMemorySegmentImpl::mismatch` always return `-1` if the source and destination segment are the same (disregarding offsets).
This pull request has now been integrated.
Changeset: 93579c29
Author: Per Minborg <pminborg at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/93579c29e3ba60a8bc16d712e7ffc733f324a223
Stats: 34 lines in 2 files changed: 27 ins; 4 del; 3 mod
8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/jdk/pull/18426
More information about the core-libs-dev
mailing list