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

Cache invocation type rather than invoker in NamedFunction

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • core-libs

      jli.NamedFunction caches an invoker MethodHandle, but this is only created and used by the LF interpreter. Removing it might mean a slight degradation in LFI performance, since we'd possibly have to create the method type on each invocation.

      By restructuring so that NamedFunction creates the invocation methodType on construction and drop the invoker cache we are more or less neutral for LFI performance, but see a small win in the default path for those NamedFunctions that operate on a MemberName and not a ResolvedHandle (including many primordial and intrinsic MHs).

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: