aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/JOCLJNILibLoader.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-27 23:44:56 +0200
committerMichael Bien <[email protected]>2010-06-27 23:44:56 +0200
commit467453f0752f162ce297de0db27d6a4fef67d15f (patch)
tree005e02f82b122dcfa3c54f7ccf5db0992e49422d /src/com/jogamp/opencl/JOCLJNILibLoader.java
parentbe5f1d62838cd8709a1f4f881c08494246a8471f (diff)
minor refactorings and updates.
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());
}
}