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

Use JavaNioAccess.getBufferAddress rather than DirectBuffer.address()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • 24
    • core-libs
    • None

      Some classes in the JDK still use:

      ((DirectBuffer)dst).address()

      When should they use:

      JAVA_NIO_ACCESS.getBufferAddress(dst)

      This is to support byte buffers that are backed by memory segments as well. We should also make sure that the session has proper acquire/release of the underlying segment's (if any) lifetime.

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: