• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. HotSpot
  3. Main
  4. Runtime
  5. Method handles and invokedynamic
  6. Method handle invocation

Page History

Versions Compared

Old Version 3

changes.mady.by.user John Rose

Saved on Aug 12, 2013

compared with

New Version 4

changes.mady.by.user John Rose

Saved on Aug 12, 2013

  • Previous Change: Difference between versions 2 and 3
  • Next Change: Difference between versions 4 and 5
  • View Page History

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Exact invocation:  The invokeExact method requires the caller and callee method types to have identical components.  This method is public, safe, and signature-polymorphic.
  • Generic invocation: The generic invoke method allows the caller and callee method types to differ, as long as the callee can be viewed under the caller type, using the asType method.  As a consequence, this mode offers on-the-fly argument and return conversions. This method is public, safe, and signature-polymorphic.
  • Varargs invocation: The overloaded invokeWithArguments method allow an arbitrary varargs array or list of untyped arguments to be applied to a callee, and the call succeeds as long as the callee can be viewed under an implied caller type determined as if by MethodType.genericType.  This method is public.
  • Basic invocation: The invokeBasic method requires that the caller and callee method types have corresponding components, but uses "basic type" matching, which allows any reference to match any other reference.  Because there is no runtime check for this condition, nor for reference compatibility, this method is non-public and matching types, this method must be used carefully.  It is used by trusted code to implement the other invocation modes.  It is  This method is non-public and signature-polymorphic.  The JVM implementation treats it very specially.
  • Invokedynamic invocation: The invokedynamic instruction implicitly performs an exact invocation on the target of its resolved call site.  (Unlike the other modes, the callee is not visible as a receiver on the JVM expression stack.)  Because the system ensures that all call site targets have pre-checked callee method types, the system may use basic invocation as an implementation option.

...

Overview
Content Tools
ThemeBuilder

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 276, "requestCorrelationId": "d0aa764d9a176500"}