8254231: Implementation of Foreign Linker API (Incubator)

Reviewed-by: coleenp, ihse, dholmes, vlivanov
This commit is contained in:
Maurizio Cimadamore 2020-11-23 11:00:38 +00:00
parent 53f38353e0
commit 0fb31dbf3a
212 changed files with 67390 additions and 179 deletions

View file

@ -605,6 +605,10 @@ public abstract class MethodHandle implements Constable {
/*non-public*/
static native @PolymorphicSignature Object linkToInterface(Object... args) throws Throwable;
/** TODO */
@IntrinsicCandidate
/*non-public*/ static native @PolymorphicSignature Object linkToNative(Object... args) throws Throwable;
/**
* Performs a variable arity invocation, passing the arguments in the given array
* to the method handle, as if via an inexact {@link #invoke invoke} from a call site