summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/JOCLJNILibLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl/JOCLJNILibLoader.java')
-rw-r--r--src/com/jogamp/opencl/JOCLJNILibLoader.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/com/jogamp/opencl/JOCLJNILibLoader.java b/src/com/jogamp/opencl/JOCLJNILibLoader.java
index c8a05210..61436aa5 100644
--- a/src/com/jogamp/opencl/JOCLJNILibLoader.java
+++ b/src/com/jogamp/opencl/JOCLJNILibLoader.java
@@ -1,10 +1,8 @@
package com.jogamp.opencl;
-import java.security.PrivilegedAction;
import com.jogamp.common.jvm.JNILibLoaderBase;
import com.jogamp.common.os.NativeLibrary;
-import static java.security.AccessController.*;
/**
* Responsible for JOCL lib loading.
@@ -16,12 +14,7 @@ class JOCLJNILibLoader extends JNILibLoaderBase {
* Loads the native binding and returns the OpenCL library for dynamic linking.
*/
static NativeLibrary loadJOCL() {
-
- return doPrivileged(new PrivilegedAction<NativeLibrary>() {
- public NativeLibrary run() {
- loadLibrary("jocl", null, true);
- return NativeLibrary.open("OpenCL", JOCLJNILibLoader.class.getClassLoader());
- }
- });
+ loadLibrary("jocl", null, true);
+ return NativeLibrary.open("OpenCL", JOCLJNILibLoader.class.getClassLoader());
}
}