JDK-8284961 : Load and store vectors to and from MemorySegments
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: tbd
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-04-18
  • Updated: 2022-04-26
  • Resolved: 2022-04-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdFixed
Description
Enhance the API to load and store vectors to and from `MemorySegment`s
  as defined by [JEP 424: Foreign Function & Memory (FFM) API
  (Preview)][JEP-424]. The FFM API is sufficiently mature that we are
  comfortable adding this dependency to the Vector API. We will remove
  equivalent API points that operate on `byte[]` and `ByteBuffer`, since
  a `MemorySegment` can be obtained for either. Use of `MemorySegment`s
  will enable the creation of *hyper-aligned* regions of memory, which
  align to the byte length of a vector. On some architectures, such
  alignment enables superior performance when loading and storing
  vectors.