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

C1 does not inline when it could

XMLWordPrintable

      C1 inlining checks that the declared "callee holder" is linked, which can result in a failure to inline in some situations:
      1. invokedynamic, which relies on old code in ciBytecodeStream::get_declared_method_holder() that forces the holder to be java.lang.invoke.MethodHandle, even though the actual callee is a special generated method like java/lang/invoke/Invokers$Holder.linkToTargetMethod().
      2. when the declared holder is not linked but the holder of the actual target method is linked

            dlong Dean Long
            dlong Dean Long
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: