From 8fc2136686abeaeba42e2210ae09b509fde40cb5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 18 Dec 2011 17:06:42 +0100 Subject: CgDynamicLibraryBundleInfo: Add TempJarCache usage for atomic native jar (of atomic java JAR) - GLProfile, NWJNILibLoader, NEWTJNILibLoader: Issue Platform.initSingleton() upfront within priviledge block. --- src/jogl/classes/javax/media/opengl/GLProfile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/jogl/classes/javax/media') diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java index d52fbcd16..6b39fe765 100644 --- a/src/jogl/classes/javax/media/opengl/GLProfile.java +++ b/src/jogl/classes/javax/media/opengl/GLProfile.java @@ -116,12 +116,13 @@ public class GLProfile { System.err.println("GLProfile.initSingleton(firstUIActionOnProcess: "+firstUIActionOnProcess+") - thread "+Thread.currentThread().getName()); Thread.dumpStack(); } - Platform.initSingleton(); // run the whole static initialization privileged to speed up, // since this skips checking further access AccessController.doPrivileged(new PrivilegedAction() { public Object run() { + Platform.initSingleton(); + if(TempJarCache.isInitialized()) { String[] atomicNativeJarBaseNames = new String[] { "nativewindow", "jogl", null }; if( ReflectionUtil.isClassAvailable("com.jogamp.newt.NewtFactory", GLProfile.class.getClassLoader()) ) { -- cgit v1.2.3