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

Buffer view implementations use incorrect offset for Unsafe access

    XMLWordPrintable

Details

    • b131
    • Verified

    Description

      JDK-8151163 updated the buffer implementations to use the Unsafe unaligned accessors.

      The offset calculation is incorrect. Care also needs to be take to work correctly for heap and direct buffers, specifically for the ByteBufferAs* implementations that leverage an absolute offset to the byte array or address respectively.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: