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

C2: optimize long range checks in int counted loops

XMLWordPrintable

    • b28

        Similar to JDK-8259609 but for loop and range checks of the shape:

        for (int i = start; i < stop; i += inc) {
          Objects.checkIndex(scale * ((long)i) + offset, length);
        }

        and

        for (int i = start; i < stop; i += inc) {
          Objects.checkIndex(((long)(scale * i)) + offset, length);
        }

              roland Roland Westrelin
              roland Roland Westrelin
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: