Skip to content
Browse files
8268279: gc/shenandoah/compiler/ fails after …
…LibraryLookup is gone

Reviewed-by: zgu, jiefu
  • Loading branch information
Xin Liu authored and DamonFool committed Jun 7, 2021
1 parent b05fa02 commit 2aeeeb40a06c0c71537ce7de2e00bab9faf817a9
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 2aeeeb4

Please sign in to comment.