> 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?
Peter Levart has updated the pull request incrementally with one additional commit since the last revision: move special-case check for equal segments to the instance method (more probable) ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17354/files - new: https://git.openjdk.org/jdk/pull/17354/files/7bcf0273..5112839b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17354&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17354&range=00-01 Stats: 15 lines in 1 file changed: 11 ins; 4 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/17354.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17354/head:pull/17354 PR: https://git.openjdk.org/jdk/pull/17354