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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: