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

C2: crash while inlining MethodHandle invocation w/ null receiver

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 8u40, 9
    • 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

          1. hs_err_pid18148.log
            30 kB
            Vladimir Ivanov
          2. Test.java
            0.8 kB
            Vladimir Ivanov

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

                Created:
                Updated:
                Resolved: