-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0, 1.4.1
-
04
-
generic, sparc
-
solaris_2.5.1, solaris_7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2051133 | 1.4.2 | Btplusnull User | P2 | Resolved | Fixed | mantis |
JDK-2051132 | 1.4.1_02 | Btplusnull User | P2 | Resolved | Fixed | 02 |
This program:
class A {
public static void main(String argv[]) {
int size = 4000000;
int x[] = new int[size];
for (int i = 0; i < 1000; i++) {
for (int j = 0; j < size; j += 8192) {
int y = x[j];
}
}
}
}
Fails as follows:
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java A
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server A
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at A.main(A.java:9)
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server -Xint A
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -d64 A
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server -XX:+PrintCompilation A
1% A::main @ 18
(47 bytes)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at A.main(A.java:9)
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server -version
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Server VM (build 1.4.0-rc-b91, mixed mode)
It does not fail in 1.3.1 or 1.2.1.
class A {
public static void main(String argv[]) {
int size = 4000000;
int x[] = new int[size];
for (int i = 0; i < 1000; i++) {
for (int j = 0; j < size; j += 8192) {
int y = x[j];
}
}
}
}
Fails as follows:
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java A
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server A
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at A.main(A.java:9)
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server -Xint A
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -d64 A
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server -XX:+PrintCompilation A
1% A::main @ 18
(47 bytes)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at A.main(A.java:9)
mate:~> /usr/local/java/jdk1.4.0/solsparc/bin/java -server -version
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Server VM (build 1.4.0-rc-b91, mixed mode)
It does not fail in 1.3.1 or 1.2.1.
- backported by
-
JDK-2051132 Bad exception in trivial loop on Sparc 32b -server
-
- Resolved
-
-
JDK-2051133 Bad exception in trivial loop on Sparc 32b -server
-
- Resolved
-
- relates to
-
JDK-4750681 Bad exception in the copying loop
-
- Resolved
-
-
JDK-4752235 Server compiler does not check the loop exit condition correctly
-
- Closed
-