diff options
author | Sven Gothel <[email protected]> | 2011-09-23 13:32:18 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-23 13:32:18 +0200 |
commit | 0a54e4b8e2923d1c4eb5847a397906fb783a10d3 (patch) | |
tree | f9bcffe1f4c828b2871e1269e8aadb3c10982afd /src/java | |
parent | 9da5bc1fe999caa924bd8dceafeff93ddf9d16a0 (diff) |
Moved JVMUtil to private package; Invoke JVMUtil.initSingleton() from Platform static init after loading native library.
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/com/jogamp/common/os/Platform.java | 2 | ||||
-rw-r--r-- | src/java/jogamp/common/jvm/JVMUtil.java (renamed from src/java/com/jogamp/common/jvm/JVMUtil.java) | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/os/Platform.java b/src/java/com/jogamp/common/os/Platform.java index 38635e1..3d255ba 100644 --- a/src/java/com/jogamp/common/os/Platform.java +++ b/src/java/com/jogamp/common/os/Platform.java @@ -41,6 +41,7 @@ import com.jogamp.common.nio.Buffers; import com.jogamp.common.util.JarUtil; import com.jogamp.common.util.cache.TempJarCache; +import jogamp.common.jvm.JVMUtil; import jogamp.common.os.MachineDescriptionRuntime; /** @@ -190,6 +191,7 @@ public class Platform { os_and_arch = getOSAndArch(OS_TYPE, CPU_ARCH); loadGlueGenRTImpl(); + JVMUtil.initSingleton(); MachineDescription md = MachineDescriptionRuntime.getRuntime(); if(null == md) { diff --git a/src/java/com/jogamp/common/jvm/JVMUtil.java b/src/java/jogamp/common/jvm/JVMUtil.java index 29c5f57..ac6355f 100644 --- a/src/java/com/jogamp/common/jvm/JVMUtil.java +++ b/src/java/jogamp/common/jvm/JVMUtil.java @@ -30,13 +30,15 @@ * SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ -package com.jogamp.common.jvm; +package jogamp.common.jvm; import java.nio.ByteBuffer; + +import jogamp.common.Debug; + import com.jogamp.common.nio.Buffers; import com.jogamp.common.os.Platform; -import jogamp.common.Debug; /** * Currently this tool works around the Hotspot race condition bugs: |