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

Scoped ByteBuffer vector access

XMLWordPrintable

    • b29

        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.

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

                Created:
                Updated:
                Resolved: