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

MinMaxVector clipping range benchmark highestInt/Long can overflow

XMLWordPrintable

      I discovered this while working on JDK-8351409.

      The clipping range method in the MinMaxVector JMH benchmark has an overflow issue when calculating `highestInt` and `highestLong`. If they overflow, the range parameter won't work as expected and therefore the branch taken/not-taken expectations won't be matched. When this happens, the results of the benchmark cannot be trusted.

            galder Galder ZamarreƱo
            galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: