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

[JMH] vector.IndexInRangeBenchmark failed with IndexOutOfBoundsException for size=1024

XMLWordPrintable

    • b13

        The test vector.IndexInRangeBenchmark failed with message:
        java.lang.IndexOutOfBoundsException: Index 512 out of bounds for length 481
                at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
                at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
                at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
                at java.base/java.util.Objects.checkIndex(Objects.java:365)
                at jdk.incubator.vector/jdk.incubator.vector.VectorIntrinsics.checkFromIndexSize(VectorIntrinsics.java:58)
                at jdk.incubator.vector/jdk.incubator.vector.AbstractMask.intoArray(AbstractMask.java:74)
                at org.openjdk.bench.jdk.incubator.vector.IndexInRangeBenchmark.shortIndexInRange(IndexInRangeBenchmark.java:66)

        for runs with specified parameters.
        The test array size are hardcoded as:
            public void Setup() {
                mask = new boolean[512];
            }
        and should be updated to
            public void Setup() {
                mask = new boolean[size];
            }

              vaivanov Vladimir Ivanov
              vaivanov Vladimir Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: