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

AltHashing used jint for imprecise bit shifting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7, 8, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Environment:

      generic

    • Subcomponent:
    • Resolved In Build:
      b04
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        It is not precise when do bit shifting with signed int (jint). In AltHashing, conversion between jint and 'unsigned int' could cause loss of precision. The solution is using juint for operation and before return cast result to jint.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                minqi Yumin Qi (Inactive)
                Reporter:
                minqi Yumin Qi (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: