-
Bug
-
Resolution: Fixed
-
P2
-
hs16
-
b09
-
x86
-
solaris
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2183942 | 7 | Vladimir Kozlov | P4 | Closed | Fixed | b74 |
JDK-2189950 | 6u21 | Vladimir Kozlov | P4 | Resolved | Fixed | b01 |
JDK-2182817 | 6u18 | Vladimir Kozlov | P2 | Closed | Fixed | b02 |
JDK-2182358 | hs17 | Vladimir Kozlov | P4 | Closed | Fixed | b03 |
Implementation of String.indexOf() intrinsic using SSE 4.2 instructions is incorrect.
The regression is introduced by 6761600 in HS15_b05 so jdk6u14p, jdk6u18 and JDK7 are affected.
% cat Test.java
public class Test {
static int IndexOfTest(String str) {
return str.indexOf("11111xx1x");
}
public static void main(String args[]) {
String str = "11111xx11111xx1x";
int idx = IndexOfTest(str);
System.out.println("IndexOf = " + idx);
}
}
% /java/re/jdk/6u14/promoted/p/b03/binaries/solaris-amd64/bin/java -d64 -Xcomp Test
IndexOf = -1
% /java/re/jdk/6u18/promoted/latest/binaries/solaris-i586/bin/java -Xcomp Test
IndexOf = -1
i% /java/re/jdk/6u18/promoted/latest/binaries/solaris-amd64/bin/java -d64 -Xcomp Test
IndexOf = -1
% /java/re/jdk/6u18/promoted/latest/binaries/solaris-i586/bin/java -XX:-UseSSE42Intrinsics -Xcomp Test
IndexOf = 7
The regression is introduced by 6761600 in HS15_b05 so jdk6u14p, jdk6u18 and JDK7 are affected.
% cat Test.java
public class Test {
static int IndexOfTest(String str) {
return str.indexOf("11111xx1x");
}
public static void main(String args[]) {
String str = "11111xx11111xx1x";
int idx = IndexOfTest(str);
System.out.println("IndexOf = " + idx);
}
}
% /java/re/jdk/6u14/promoted/p/b03/binaries/solaris-amd64/bin/java -d64 -Xcomp Test
IndexOf = -1
% /java/re/jdk/6u18/promoted/latest/binaries/solaris-i586/bin/java -Xcomp Test
IndexOf = -1
i% /java/re/jdk/6u18/promoted/latest/binaries/solaris-amd64/bin/java -d64 -Xcomp Test
IndexOf = -1
% /java/re/jdk/6u18/promoted/latest/binaries/solaris-i586/bin/java -XX:-UseSSE42Intrinsics -Xcomp Test
IndexOf = 7
- backported by
-
JDK-2189950 Intrinsic for String.indexOf() is broken on x86 with SSE4.2
- Resolved
-
JDK-2182817 Intrinsic for String.indexOf() is broken on x86 with SSE4.2
- Closed
-
JDK-2182358 Intrinsic for String.indexOf() is broken on x86 with SSE4.2
- Closed
-
JDK-2183942 Intrinsic for String.indexOf() is broken on x86 with SSE4.2
- Closed
- relates to
-
JDK-6761600 use sse 4.2 in intrinsics
- Resolved
-
JDK-6935535 String.indexOf() returns incorrect result on x86 with SSE4.2
- Resolved
(1 relates to)