C2: crash while inlining MethodHandle invocation w/ null receiver

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 8u40, 9
    • Component/s: hotspot
    • None
    • b35
    • Verified

        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

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

                Created:
                Updated:
                Resolved: