Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-2018

[DRLVM] Fix support of SOE and other runtime exceptions in VM native code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • DRLVM
    • None
    • Patch Available

    Description

      The following test shows that runtime exceptions in VM native code aren't processed correctly.

      package exception;

      class FinalizeStackTest {
      private static final int MAX_DEPTH = 1000000;

      FinalizeStackTest(int c) {
      if (c > 0)

      { new FinalizeStackTest(c - 1); }

      else

      { System.out.println("PASS"); }

      }

      protected void finalize()

      { / empty }

      public static void main(String[] args) {
      try

      { new FinalizeStackTest(MAX_DEPTH); System.out.println("FAIL"); }

      catch (StackOverflowError soe)

      { System.out.println("PASS : " + soe); }

      catch (Throwable th)

      { System.out.println("FAIL"); }

      }
      }

      Attachments

        Issue Links

          Activity

            People

              gshimansky Gregory Shimansky
              pavel.n.afremov Pavel Afremov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: