The following program throw an exception in -Xcomp mode
public class t {
static void f() {
if (Double.isInfinite(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is Infinity");
if (Double.isNaN(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is NaN");
}
static public void main(String[] args) {
if (Double.isInfinite(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is Infinity");
if (Double.isNaN(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is NaN");
f();
}
}
Inlining seems tobe involved since if you turn it off them program works fine.
tom.rodriguez@Eng 1998-11-20
public class t {
static void f() {
if (Double.isInfinite(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is Infinity");
if (Double.isNaN(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is NaN");
}
static public void main(String[] args) {
if (Double.isInfinite(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is Infinity");
if (Double.isNaN(Double.MIN_VALUE))
throw new Error("thinks MIN_VALUE is NaN");
f();
}
}
Inlining seems tobe involved since if you turn it off them program works fine.
tom.rodriguez@Eng 1998-11-20