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

JSR 292 generic invoke needs to be fast

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • hs25, 8, 9, 10
    • 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.

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

              Created:
              Updated: