Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8349637 Integer.numberOfLeadingZeros outputs incorrectly in certain cases
  3. JDK-8350431

Release Note: Incorrect result of Integer.numberOfLeadingZeros

XMLWordPrintable

      `Integer.numberOfLeadingZeros` may return an incorrect result on x86_64 with AVX2. The issue is caused by an incorrect JIT compiler optimization. As a workaround, the following command-line options can be used `-XX:+UnlockDiagnosticVMOptions -XX:DisableIntrinsic=_numberOfLeadingZeros_i`.

            Unassigned Unassigned
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: