[c1 frontend] missing exception handler

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.3.0
    • Affects Version/s: 1.4.0
    • Component/s: 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();
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: