RFR: 8318678: Vector access on heap MemorySegments only works for byte[] [v3]

Per Minborg pminborg at openjdk.org
Mon Oct 30 13:43:13 UTC 2023


> This PR proposes removing the restriction that only heap `MemorySegment` wrapping a `byte` array can be accessed by Vectors. Now any array type can be used provided the element alignment constraints are respected.

Per Minborg has updated the pull request incrementally with one additional commit since the last revision:

  Add benchmark and intrinsification spy

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16360/files
  - new: https://git.openjdk.org/jdk/pull/16360/files/4828a98b..c104051c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=16360&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=16360&range=01-02

  Stats: 420 lines in 3 files changed: 419 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/16360.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16360/head:pull/16360

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


More information about the core-libs-dev mailing list