Skip to content
Browse files
Automatic merge of jdk:master into master
  • Loading branch information
duke committed Jun 7, 2021
2 parents f762734 + 2aeeeb4 commit af147b32d224a0b3b237df9b951e6fd98afe64c5
Showing 1 changed file with 6 additions and 2 deletions.
@@ -39,16 +39,20 @@

import jdk.incubator.foreign.CLinker;
import jdk.incubator.foreign.FunctionDescriptor;
import jdk.incubator.foreign.LibraryLookup;
import jdk.incubator.foreign.SymbolLookup;

import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodType;

import static jdk.incubator.foreign.CLinker.C_INT;

public class TestLinkToNativeRBP {
static {

final static CLinker abi = CLinker.getInstance();
static final LibraryLookup lookup = LibraryLookup.ofLibrary("LinkToNativeRBP");
static final SymbolLookup lookup = SymbolLookup.loaderLookup();
final static MethodHandle foo = abi.downcallHandle(lookup.lookup("foo").get(),

0 comments on commit af147b3

Please sign in to comment.