RFR: 8323552: AbstractMemorySegmentImpl#mismatch returns -1 when comparing distinct areas of the same instance of MemorySegment [v3]
Per Minborg
pminborg at openjdk.org
Mon Mar 25 10:39:23 UTC 2024
On Thu, 11 Jan 2024 16:21:38 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?
>
> Peter Levart has updated the pull request incrementally with one additional commit since the last revision:
>
> remove special-case check from instance method - test pending
This PR can be closed @plevart as the issue has been fixed via https://github.com/openjdk/jdk/pull/18426
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17354#issuecomment-2017693081
More information about the core-libs-dev
mailing list