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

Paul Sandoz psandoz at openjdk.org
Mon Oct 30 16:34:35 UTC 2023


On Mon, 30 Oct 2023 13:43:13 GMT, Per Minborg <pminborg at openjdk.org> wrote:

>> 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

Looks good. Please remove `IntrinsicHeapTest` and let's follow up in another issue/PR to fix the mismatched heap access not being intrinsic.

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

Marked as reviewed by psandoz (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/16360#pullrequestreview-1704600236


More information about the core-libs-dev mailing list