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

C2: crash while inlining MethodHandle invocation w/ null receiver

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b35
    • Verification:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved: