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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 12
    • Affects Version/s: 8, 11, 12
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: