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

[c1 frontend] missing exception handler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.4.0
    • hotspot
    • None
    • sol-beta
    • x86
    • windows_nt

      The following code is missing the needed exception handler.
      The frontend incorrectly eliminates it.

      Running the attached Java program causes the VM to crash.


      public class testme {

          public static void runme() {
            int i = 0;
            TripleThreadStop.cStarted = true;
            while (true) {
              try {
                while (true) {
                  ++i;
                }
              }
              catch (ThreadDeath e) {
              }
            }
          }

          public static void main(String s[]) {
            runme();
          }
      }

            rgriesemsunw Robert Griesemer (Inactive)
            smitrovisunw Srdjan Mitrovic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: