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

missing dead code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 1.0
    • vm-legacy
    • jit
    • sparc
    • solaris_2.5

      JIT generates wierd code for the following program:

      class divtest {
        public static void main(String[] args) {
          int x = 2;
          int y = 0;
          int z = x / y;
        }
      }

      The visible effect is that the division by zero exception is not generated.
      It almost seems like JIT is doing some sort of dead code elimination.

            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: