mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8350701: [JMH] test foreign.AllocFromSliceTest failed with Exception for size>1024
Reviewed-by: pminborg
This commit is contained in:
parent
3ae80bfb60
commit
f1398ecbe4
@ -55,10 +55,10 @@ public class AllocFromSliceTest extends CLayouts {
|
||||
|
||||
@Setup
|
||||
public void setup() {
|
||||
arr = new byte[1024];
|
||||
arr = new byte[size * 2];
|
||||
Random random = new Random(0);
|
||||
random.nextBytes(arr);
|
||||
start = random.nextInt(1024 - size);
|
||||
start = random.nextInt(size);
|
||||
}
|
||||
|
||||
@Benchmark
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user