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

C2: investigate intrinsification of Preconditions.checkFromToIndex() and Preconditions.checkFromIndexSize()

XMLWordPrintable

      Preconditions.checkIndex() is intrinsified so C2 recognizes it as a range check and optimizes it accordingly. It's not the case of checkFromToIndex() and checkFromIndexSize(). Should they be intrinsified so range check elimination also applies to them?

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

              Created:
              Updated: