We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae80bf commit f1398ecCopy full SHA for f1398ec
test/micro/org/openjdk/bench/java/lang/foreign/AllocFromSliceTest.java
@@ -55,10 +55,10 @@ public class AllocFromSliceTest extends CLayouts {
55
56
@Setup
57
public void setup() {
58
- arr = new byte[1024];
+ arr = new byte[size * 2];
59
Random random = new Random(0);
60
random.nextBytes(arr);
61
- start = random.nextInt(1024 - size);
+ start = random.nextInt(size);
62
}
63
64
@Benchmark
0 commit comments