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

(bf) Long chains created by direct Buffer::slice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 8, 11, 12
    • core-libs
    • b06
    • Verified

      A direct ByteBuffer created from another direct ByteBuffer, via slice say, will use the source buffer as an attachment for liveness rather than the source buffer's attachment.

      This can result in long chains of buffers being kept alive that may induce ouf of memory exceptions.

      For more discussion see:

        http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-July/054515.html

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

              Created:
              Updated:
              Resolved: