Skip to content

Commit 2196694

Browse files
committed
8344104: TestMergeStores fails with ArrayIndexOutOfBoundException
Reviewed-by: shade, chagedorn, dlong
1 parent 0ae5748 commit 2196694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/hotspot/jtreg/compiler/c2/TestMergeStores.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ public void runTests(RunInfo info) {
340340
set_random(aL);
341341
set_random(bL);
342342

343-
offset1 = Math.abs(RANDOM.nextInt()) % 100;
344-
offset2 = Math.abs(RANDOM.nextInt()) % 100;
343+
offset1 = RANDOM.nextInt(100);
344+
offset2 = RANDOM.nextInt(100);
345345
vB1 = (byte)RANDOM.nextInt();
346346
vB2 = (byte)RANDOM.nextInt();
347347
vS1 = (short)RANDOM.nextInt();

0 commit comments

Comments
 (0)