summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/java/com/jogamp/common/os/Platform.java2
-rw-r--r--src/java/jogamp/common/jvm/JVMUtil.java (renamed from src/java/com/jogamp/common/jvm/JVMUtil.java)6
-rw-r--r--src/native/common/JVMUtil.c (renamed from src/native/common/JVM_Tool.c)4
3 files changed, 8 insertions, 4 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:
diff --git a/src/native/common/JVM_Tool.c b/src/native/common/JVMUtil.c
index 043ad8b..28ef209 100644
--- a/src/native/common/JVM_Tool.c
+++ b/src/native/common/JVMUtil.c
@@ -40,10 +40,10 @@
#include <stdio.h> //required by android to identify NULL
#include <jni.h>
-#include "com_jogamp_common_jvm_JVMUtil.h"
+#include "jogamp_common_jvm_JVMUtil.h"
JNIEXPORT jboolean JNICALL
-Java_com_jogamp_common_jvm_JVMUtil_initialize(JNIEnv *env, jclass _unused, jobject nioBuffer) {
+Java_jogamp_common_jvm_JVMUtil_initialize(JNIEnv *env, jclass _unused, jobject nioBuffer) {
void * ptr = NULL;
if (nioBuffer != NULL) {
ptr = (void *) (*env)->GetDirectBufferAddress(env, nioBuffer);