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

JSR 292 generic invoke needs to be fast

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: