JSR 292 generic invoke needs to be fast

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: hs25, 8, 9, 10
    • Component/s: hotspot

      The execution path through generic method handle invocation (MH.invoke not MH.invokeExact) involves complicate type tests which do not optimize well.
      A generic call through a constant MH should fold up all argument adaptations into the call site as inlined operations.
      A generic call through a non-constant but monomorphic MH should optimistically use inlined operations. (See JDK-6919064 and JDK-8016581.)
      A generic call through an arbitrary MH will be megamorphic, but should quickly locate and run through a well-optimized adapter stub before jumping into the MH.form.vmentry code.

            Assignee:
            Unassigned
            Reporter:
            John Rose
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: