Versions Compared

Key

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

Linker methods are four sub-primitives used to implement Direct method handles.

Linker methods

Certain non-public methods in MethodHandle are used as sub-primitives inside certain lambda-form bodies, to provide the ultimate connection between lambda-form code and the machine-level entry points of arbitrary JVM methods. In particular, direct method handles (such as are formed as CONSTANT_MethodHandle constants) are represented with lambda forms which perform argument checks and marshaling and then invoke the JVM method underlying the direct method handle.

...