Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2013908 | 1.1 | Timothy Cramer | P1 | Resolved | Fixed | 1.1 |
This fails when compiled with javac -O, passes otherwise, on intel only:
public class x {
final double abs(double d) {
if (d >= 0.0)
return d;
else
return -d;
}
public static void main(String argv[]) {
int i,j;
double d1[] = new double[200];
double d2[] = new double[200];
x thing = new x();
d1[3] = -3;
d2[3] = thing.abs(d1[3]);
System.out.println("Made it");
}
}
public class x {
final double abs(double d) {
if (d >= 0.0)
return d;
else
return -d;
}
public static void main(String argv[]) {
int i,j;
double d1[] = new double[200];
double d2[] = new double[200];
x thing = new x();
d1[3] = -3;
d2[3] = thing.abs(d1[3]);
System.out.println("Made it");
}
}
- backported by
-
JDK-2013908 jit fails with javac -O compiled file on Solaris Intel
-
- Resolved
-