This PR proposes to fix a bug in the `MemorySegment::asOverlapingSlice` which 
incorrectly computes the size of the overlapping region. 

A parameterized test is also proposed via this PR

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Fix asOverlappingSlice issue

Changes: https://git.openjdk.org/jdk/pull/32707/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32707&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8391831
  Stats: 24 lines in 2 files changed: 19 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/32707.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32707/head:pull/32707

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

Reply via email to