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

C2: crash while inlining MethodHandle invocation w/ null receiver

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 8u40, 9
    • hotspot
    • None
    • b35
    • Verified

    Backports

      Description

        C2 doesn't handle the case during inlining throw MethodHandle.invoke* when receiver is null, e.g.:
          target.invokeExact((Test) null);

        Test case attached.

        ILW = HLH = P2
        I = H: product crash
        L = L: constant null receiver is rare
        W = H: disable inlining, but it's not feasible in practice

        Attachments

          Issue Links

            Activity

              People

                vlivanov Vladimir Ivanov
                vlivanov Vladimir Ivanov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: