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

duke duke at openjdk.org
Mon May 20 15:49:15 UTC 2024


On Wed, 10 Jan 2024 20:54:20 GMT, Peter Levart <plevart at openjdk.org> wrote:

> I belive there is a bug in `AbstractMemorySegmentImpl#mismatch` method. It returns `-1` (meaning that regions are equal) when passing the same instance of MemorySegment as both `srcSegment` and `dstSegment` parameters regardless of whether `srcFromOffset` and `dstFromOffset` as well as `srcToOffset` and `dstToOffset` are also equal.
> 
> Am I right?

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk/pull/17354


More information about the core-libs-dev mailing list