Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8269246

Scoped ByteBuffer vector access

    XMLWordPrintable

Details

    • b29

    Backports

      Description

        The Foreign Memory API supports viewing a MemorySegment as a ByteBuffer, an instance of which can then be passed to the vector load/store access methods.

        Such ByteBuffer access requires accesses are scoped (a method annotated with ScopedMemoryAccess.Scoped) and the ByteBuffer's scope (instance of ScopedMemoryAccess.Scope) checked for validity. Thereby ensuring exceptional failure if a shared buffer has been closed.

        Attachments

          Issue Links

            Activity

              People

                psandoz Paul Sandoz
                psandoz Paul Sandoz
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: