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

crash with implicit exceptions on x86 during deoptimization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • hotspot
    • None
    • beta2
    • x86
    • solaris_8

      The following program crashes on soolx86 and win32 when run with -Xcomp -XX:+DeoptimizeALot:

      public class div0 {
        public static void main(String[] args) {
          for (int i = 0; i < 10000; i++) {
            try {
              System.out.println(idiv());
            } catch (Exception e) {
            }
            try {
              System.out.println(irem());
            } catch (Exception e) {
            }
          }
        }
        static int idiv() {
          int a = 0;
          int b = 1;
          int c = 2;
          int d = 3;
          int e = 4;
          int f = 5;
          return f / a;
        }
        static int irem() {
          int a = 0;
          int b = 1;
          int c = 2;
          int d = 3;
          int e = 4;
          int f = 5;
          return f % a;
        }
      }

      thomas.rodriguez@eng 2001-06-21

            never Tom Rodriguez
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: