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

[ppc, s390] CRC32C: wrong checksum result in some cases

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Introduced In Version:
      10
    • Resolved In Build:
      b21
    • CPU:
      ppc, s390x
    • OS:
      generic
    • Verification:
      Verified

      Description

      The newly introduced CRC32C intrinsics unfortunately calculate a bad checksum, if
       * the passed-in byte array has an offset != 0
       * the intrinsic implementation is called via the interpreter or via a c1-compiled method.

      Reason:
      in contrast to the CRC32 intrinsics, the CRC32C intrinsics receive an end-index parameter instead of a length parameter. The length has to be calculated by the intrinsic as (endIndex - offset). This subtraction was simply forgotten.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lucy Lucy Schmidt
                Reporter:
                lucy Lucy Schmidt
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: