summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/os/MachineDescription.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-06-18 18:21:15 +0200
committerSven Gothel <[email protected]>2012-06-18 18:21:15 +0200
commit05024570dbf5fce08fa8ff081cb696f0fc4b7f95 (patch)
tree2d5ac237803252a7490805c35e211daebe07381b /src/java/com/jogamp/common/os/MachineDescription.java
parent1468286bf569a493e4fdb887d5f3732f88c8cec3 (diff)
Fix Platform static initialization interdependencies w/ GlueGen native library loading
Some Platform field declarations and it's static initialization has been delegated to it's new abstract super class PlatformPropsImpl to solve static initialization interdependencies w/ the GlueGen native library loading and it's derived information {@link #getMachineDescription()}, {@link #is32Bit()}, ..<br> This mechanism is preferred in this case to avoid synchronization and locking and allow better performance accessing the mentioned fields/methods.
Diffstat (limited to 'src/java/com/jogamp/common/os/MachineDescription.java')
-rw-r--r--src/java/com/jogamp/common/os/MachineDescription.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/os/MachineDescription.java b/src/java/com/jogamp/common/os/MachineDescription.java
index 317b278..79f2b8f 100644
--- a/src/java/com/jogamp/common/os/MachineDescription.java
+++ b/src/java/com/jogamp/common/os/MachineDescription.java
@@ -40,6 +40,8 @@
package com.jogamp.common.os;
+import jogamp.common.os.PlatformPropsImpl;
+
/**
* For alignment and size see {@link com.jogamp.gluegen}
*/
@@ -326,7 +328,7 @@ public class MachineDescription {
if(null==sb) {
sb = new StringBuilder();
}
- sb.append("MachineDescription: runtimeValidated ").append(isRuntimeValidated()).append(", littleEndian ").append(isLittleEndian()).append(", 32Bit ").append(is32Bit()).append(", primitive size / alignment:").append(Platform.getNewline());
+ sb.append("MachineDescription: runtimeValidated ").append(isRuntimeValidated()).append(", littleEndian ").append(isLittleEndian()).append(", 32Bit ").append(is32Bit()).append(", primitive size / alignment:").append(PlatformPropsImpl.NEWLINE);
sb.append(" int8 ").append(int8SizeInBytes) .append(" / ").append(int8AlignmentInBytes);
sb.append(", int16 ").append(int16SizeInBytes) .append(" / ").append(int16AlignmentInBytes).append(Platform.getNewline());
sb.append(" int ").append(intSizeInBytes) .append(" / ").append(intAlignmentInBytes);