summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/com
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2009-06-18 07:02:02 +0000
committerSven Gothel <[email protected]>2010-04-19 00:56:06 +0200
commitc6a09a835c5bfb95e9330a2449caf0d0bce4abcb (patch)
tree092d4d9360a64a0343b4acaef003fe8c9a54f4fe /src/nativewindow/classes/com
parent248d4afb694355037b1dd98db3ed48f1fff20f50 (diff)
Refactored static initialization to let the JVM ensure it only runs once; don't remember the JVM static initialization rules which probably define why it was getting called twice
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1989 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/nativewindow/classes/com')
-rw-r--r--src/nativewindow/classes/com/sun/nativewindow/impl/jvm/JVMUtil.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/nativewindow/classes/com/sun/nativewindow/impl/jvm/JVMUtil.java b/src/nativewindow/classes/com/sun/nativewindow/impl/jvm/JVMUtil.java
index a4bffb1..3faab68 100644
--- a/src/nativewindow/classes/com/sun/nativewindow/impl/jvm/JVMUtil.java
+++ b/src/nativewindow/classes/com/sun/nativewindow/impl/jvm/JVMUtil.java
@@ -50,15 +50,6 @@ public class JVMUtil {
private static final boolean DEBUG = Debug.debug("JVMUtil");
static {
- initSingleton();
- }
-
- private static volatile boolean isInit = false;
-
- public static synchronized void initSingleton() {
- if(isInit) return;
- isInit=true;
-
NativeLibLoaderBase.loadNativeWindow("jvm");
ByteBuffer buffer = InternalBufferUtil.newByteBuffer(64);
@@ -71,6 +62,9 @@ public class JVMUtil {
}
}
+ public static void initSingleton() {
+ }
+
private JVMUtil() {}
private static native boolean initialize(java.nio.ByteBuffer buffer);