Skip to content

Commit eb3cfd2

Browse files
committed
Dremio updates
1 parent 734af16 commit eb3cfd2

File tree

1 file changed

+5
-4
lines changed
  • gandiva/src/main/java/org/apache/arrow/gandiva/evaluator

1 file changed

+5
-4
lines changed

gandiva/src/main/java/org/apache/arrow/gandiva/evaluator/JniLoader.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
import static java.util.UUID.randomUUID;
2020

21+
import com.sun.jna.Library;
22+
import com.sun.jna.NativeLibrary;
2123
import java.io.File;
2224
import java.io.IOException;
2325
import java.io.InputStream;
@@ -32,9 +34,9 @@
3234
/** This class handles loading of the jni library, and acts as a bridge for the native functions. */
3335
class 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

0 commit comments

Comments
 (0)