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

missing dead code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: vm-legacy
    • Labels:
    • Subcomponent:
      jit
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            duke J. Duke (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: