File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
gandiva/src/main/java/org/apache/arrow/gandiva/evaluator Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1818
1919import static java .util .UUID .randomUUID ;
2020
21+ import com .sun .jna .Library ;
22+ import com .sun .jna .NativeLibrary ;
2123import java .io .File ;
2224import java .io .IOException ;
2325import java .io .InputStream ;
3234/** This class handles loading of the jni library, and acts as a bridge for the native functions. */
3335class JniLoader {
3436 private static final String LIBRARY_NAME = "gandiva_jni" ;
35-
37+
3638 private static final int RTLD_GLOBAL = 0x00100 ;
37- private static final int RTLD_LAZY = 0x00001 ;
39+ private static final int RTLD_LAZY = 0x00001 ;
3840
3941 private static volatile JniLoader INSTANCE ;
4042 private static volatile long defaultConfiguration = 0L ;
@@ -75,8 +77,7 @@ private static void loadGandivaLibraryFromJar(final String tmpDir)
7577 final File libraryFile = moveFileFromJarToTemp (tmpDir , libraryToLoad , LIBRARY_NAME );
7678 NativeLibrary .getInstance (
7779 libraryFile .getAbsolutePath (),
78- Collections .singletonMap (Library .OPTION_OPEN_FLAGS , new Integer (RTLD_LAZY | RTLD_GLOBAL ))
79- );
80+ Collections .singletonMap (Library .OPTION_OPEN_FLAGS , new Integer (RTLD_LAZY | RTLD_GLOBAL )));
8081 System .load (libraryFile .getAbsolutePath ());
8182 }
8283
You can’t perform that action at this time.
0 commit comments