The following code is missing the needed exception handler.
The frontend incorrectly eliminates it.
Running the attached Java program causes the VM to crash.
public class testme {
public static void runme() {
int i = 0;
TripleThreadStop.cStarted = true;
while (true) {
try {
while (true) {
++i;
}
}
catch (ThreadDeath e) {
}
}
}
public static void main(String s[]) {
runme();
}
}
The frontend incorrectly eliminates it.
Running the attached Java program causes the VM to crash.
public class testme {
public static void runme() {
int i = 0;
TripleThreadStop.cStarted = true;
while (true) {
try {
while (true) {
++i;
}
}
catch (ThreadDeath e) {
}
}
}
public static void main(String s[]) {
runme();
}
}
- relates to
-
JDK-4327029 Erroneous code range in exception table for synchronized statements
- Closed