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

[JVMCI] when rethrowing exceptions at deopt the exception must be fetched after materialization

XMLWordPrintable

    • b166
    • Not verified

        JVMCI introduced the ability to rethrow an exception at the deopt point to support deoptimization during exception dispatch. The exception to be thrown is fetched from the top of stack. It's possible that exception has been escape analyzed and must be materialized. The current logic fetches the exception from the deopt state before materialization which will produce null in this case. Exception will eventually crash because we enter the exception machinery a NULL pointer and all those paths assume that it's non-null. The fix is simply to move the capture of the exception until after rematerialization.

              never Tom Rodriguez
              never Tom Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: