Use JavaNioAccess.getBufferAddress rather than DirectBuffer.address()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 25
    • Affects Version/s: 24
    • Component/s: core-libs
    • None
    • b25

      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.

            Assignee:
            Per-Ake Minborg
            Reporter:
            Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: