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

C2: optimize long range checks in int counted loops

    XMLWordPrintable

Details

    • b28

    Backports

      Description

        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);
        }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: