Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4191873

weird floating point behaviour in Xcomp mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.0
    • 1.0
    • hotspot
    • None
    • beta1
    • sparc
    • solaris_2.6
    • Not verified

      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

            cclicksunw Clifford Click (Inactive)
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: