Skip to content

Commit 98e1a2d

Browse files
committed
backport e7ee8cd39de1843f4d4e1d7c331846b0460436cd
1 parent 4b5596a commit 98e1a2d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

test/hotspot/jtreg/compiler/loopopts/superword/TestDependencyOffsets.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2026, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -158,6 +158,7 @@
158158
/*
159159
* @test id=sse4-v004-A
160160
* @bug 8298935 8310308 8312570
161+
* @key randomness
161162
* @summary Test SuperWord: vector size, offsets, dependencies, alignment.
162163
* @requires vm.compiler2.enabled
163164
* @requires (os.arch=="x86" | os.arch=="i386" | os.arch=="amd64" | os.arch=="x86_64")

test/hotspot/jtreg/serviceability/jvmti/RedefineClasses/ClassVersionAfterRedefine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private static int getStringIndex(String needle, byte[] buf) {
5454

5555
private static int getStringIndex(String needle, byte[] buf, int offset) {
5656
outer:
57-
for (int i = offset; i < buf.length - offset - needle.length(); i++) {
57+
for (int i = offset; i < buf.length - needle.length(); i++) {
5858
for (int j = 0; j < needle.length(); j++) {
5959
if (buf[i + j] != (byte)needle.charAt(j)) continue outer;
6060
}

0 commit comments

Comments
 (0)