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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b06
    • Verification:
      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

            • Assignee:
              psandoz Paul Sandoz (Inactive)
              Reporter:
              psandoz Paul Sandoz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: