MCPcopy Create free account
hub / github.com/java-native-access/jna / JNILibrary

Class JNILibrary

test/com/sun/jna/PerformanceTest.java:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 public void testEmpty() { }
42
43 private static class JNILibrary {
44 static {
45 String path = TESTPATH + NativeLibrary.mapSharedLibraryName("testlib");;
46 if (!new File(path).isAbsolute()) {
47 path = new File(path).getAbsolutePath();
48 }
49 System.load(path);
50 }
51
52 private static native double cos(double x);
53 private static native int getpid();
54 }
55
56 public static void main(java.lang.String[] argList) {
57 checkPerformance();

Callers

nothing calls this directly

Calls 2

mapSharedLibraryNameMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…