summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-27 01:03:30 +0200
committerSven Gothel <[email protected]>2012-03-27 01:03:30 +0200
commit90660b99631668193e853012459c8d242951e03a (patch)
treea635a78f1d9dd35c62876d59928ae7363a071394 /src/java/com/jogamp/common/os/DynamicLibraryBundle.java
parente9e61421ef6009e6788998c471d1d3d30aaefea6 (diff)
To help analyzing Bug 566, we allow overwriting the 'workaround' with sys prop -Djogamp.debug.NativeLibrary.UseCurrentThreadLibLoader
Diffstat (limited to 'src/java/com/jogamp/common/os/DynamicLibraryBundle.java')
-rwxr-xr-xsrc/java/com/jogamp/common/os/DynamicLibraryBundle.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
index b86a701..fc302e9 100755
--- a/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
+++ b/src/java/com/jogamp/common/os/DynamicLibraryBundle.java
@@ -33,6 +33,7 @@ import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
+import jogamp.common.Debug;
import jogamp.common.awt.AWTEDTExecutor;
import com.jogamp.common.jvm.JNILibLoaderBase;
@@ -56,6 +57,8 @@ import com.jogamp.common.util.RunnableExecutor;
* </ul>
*/
public class DynamicLibraryBundle implements DynamicLookupHelper {
+ public static final boolean USE_CURRENT_THREAD_LIBLOADER = Debug.debug("NativeLibrary.UseCurrentThreadLibLoader");
+
private DynamicLibraryBundleInfo info;
private List<List<String>> toolLibNames;
@@ -74,7 +77,7 @@ public class DynamicLibraryBundle implements DynamicLookupHelper {
/** Returns an AWT-EDT {@link RunnableExecutor} implementation if AWT is available, otherwise {@link RunnableExecutor#currentThreadExecutor}. */
public static RunnableExecutor getDefaultRunnableExecutor() {
- if(Platform.AWT_AVAILABLE) {
+ if(!USE_CURRENT_THREAD_LIBLOADER && Platform.AWT_AVAILABLE) {
return AWTEDTExecutor.singleton;
} else {
return RunnableExecutor.currentThreadExecutor;
@@ -115,6 +118,7 @@ public class DynamicLibraryBundle implements DynamicLookupHelper {
System.err.println(" Glue Lib Names : "+glueLibNames);
System.err.println(" Glue Lib Loaded: "+getGlueLibLoadedNumber()+"/"+getGlueLibNumber()+" "+Arrays.toString(glueLibLoaded)+", complete "+isGlueLibComplete());
System.err.println(" All Complete: "+isLibComplete());
+ System.err.println(" LibLoaderExecutor: "+info.getLibLoaderExecutor().getClass().getName());
}
}