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

Buffer view implementations use incorrect offset for Unsafe access

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b131
    • Verification:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: