-
Enhancement
-
Resolution: Fixed
-
P4
-
21, 24, 25
-
b13
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8351609 | 24.0.2 | Sendao Yan | P4 | Resolved | Fixed | master |
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];
}
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];
}
- backported by
-
JDK-8351609 [JMH] vector.IndexInRangeBenchmark failed with IndexOutOfBoundsException for size=1024
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk24u/959e0265
-
Commit(master) openjdk/jdk/768b0241
-
Review(master) openjdk/jdk21u-dev/1465
-
Review(master) openjdk/jdk24u/102
-
Review(master) openjdk/jdk/23783
(1 links to)