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

Zero: on return path, check for pending exception before attempting to clear it

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 11, 15, 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      Profiling shows we spend a lot of time trying to clear the pending exception at _return path, whereas it seldom is pending.

      The additional problem with calling into clear_pending_exception is that inlining budget is depleted completely at that point in the compilation unit, and so we do the full outbound call.

      There are other places where we clear pending exception unconditionally, but those places do seem to expect the exceptions to be there.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: