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

MemorySegment.ofBuffer does not keep byte buffer alive

XMLWordPrintable

      As the title says, MemorySegment.ofBuffer tries to fetch the scope attached to the buffer instance (if any) and use that. If none is found, the global scope is used instead. This is a bug - since there would be nothing keeping the buffer alive.

            mcimadamore Maurizio Cimadamore
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: