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

Backport-of: 959e0265cfd829a1f857835e1ee95c75b6f6c9cb
This commit is contained in:
SendaoYan
2025-03-20 00:26:30 +00:00
committed by Vitaly Provodin
parent 29cd61c348
commit 9769f0ed0c

View File

@@ -48,7 +48,7 @@ public class IndexInRangeBenchmark {
@Setup(Level.Trial)
public void Setup() {
mask = new boolean[512];
mask = new boolean[size + 64];
}
@Benchmark