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

C2: revisit exception propagation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 18, 19
    • hotspot

      With late inlining we hit a couple bugs in the exception handling code because when an exception is thrown, rather than pop the expression stack, it is preserved until the exception handler executes or the exception is passed on to the caller. So far, the 2 bugs were fixed by working around the issue. However, popping the stack at the point where the exception is thrown would fix both issues and remove the need for workarounds. It's questionable whether the stack needs to be preserved until the exception is processed. It seems the stack is preserved because of a risk of an uncommon trap but, with today's code, there doesn't seem to be any uncommon trap on the path from exception throwing to exception handling.

      See:
      https://github.com/openjdk/jdk/pull/6572

            Unassigned Unassigned
            roland Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: