Skip to content

Commit

Permalink
8268279: gc/shenandoah/compiler/TestLinkToNativeRBP.java fails after …
Browse files Browse the repository at this point in the history
…LibraryLookup is gone

Reviewed-by: zgu, jiefu
  • Loading branch information
Xin Liu authored and DamonFool committed Jun 7, 2021
1 parent b05fa02 commit 2aeeeb4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
System.loadLibrary("LinkToNativeRBP");
}

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(),
MethodType.methodType(int.class),
FunctionDescriptor.of(C_INT));
Expand Down

1 comment on commit 2aeeeb4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.