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

[JVMCI] Set exception_seen accordingly in the runtime.

    XMLWordPrintable

Details

    • b29

    Backports

      Description

        When we unwind an exception and cannot find an exception handler mapped to the invocation pc, we deoptimize the caller on the stack directly in Deoptimizer::deoptimize_for_missing_exception_handler. In some corner cases (e.g., pmd without tiered compilation), the exceptionSeen flag is not updated in the interpreter due to the absence of MDO. We should directly update the exceptionSeen flag here in the deoptimize_for_missing_exception_handler.

        C1 compiled code also does not update exceptionSeen accordingly. This may result in an unnecessary Graal compilation based on an out-dated profile. We should consider making that update when C1 compiled code calls into runtime for instantiating the exception object.

        Attachments

          Issue Links

            Activity

              People

                yzheng Yudi Zheng
                yzheng Yudi Zheng
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: