missing dead code

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P2
    • None
    • Affects Version/s: 1.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: