summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-06-07 23:39:52 +0200
committerSven Gothel <[email protected]>2011-06-07 23:39:52 +0200
commit132d4924cb191a0a16f9b42ccb718803c52b0295 (patch)
tree81dd80e6ec4f76835849b64c6dfb5a41e86dc20e /src/java/com/jogamp
parent3c9d9db8a348eca768042140516979d32a75bffa (diff)
Platform: Add getPageSize()
Diffstat (limited to 'src/java/com/jogamp')
-rw-r--r--src/java/com/jogamp/common/os/Platform.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/com/jogamp/common/os/Platform.java b/src/java/com/jogamp/common/os/Platform.java
index 3bd9966..e31e123 100644
--- a/src/java/com/jogamp/common/os/Platform.java
+++ b/src/java/com/jogamp/common/os/Platform.java
@@ -57,6 +57,7 @@ public class Platform {
private static final boolean is32Bit;
private static final int pointerSizeInBits;
+ private static final long pageSize;
static {
@@ -83,8 +84,10 @@ public class Platform {
if(libsLoaded) {
pointerSizeInBits = getPointerSizeInBitsImpl();
+ pageSize = getPageSizeImpl();
}else{
pointerSizeInBits = -1;
+ pageSize = -1;
}
is32Bit = initArch();
@@ -161,6 +164,7 @@ public class Platform {
}
private static native int getPointerSizeInBitsImpl();
+ private static native long getPageSizeImpl();
/**
@@ -249,5 +253,8 @@ public class Platform {
return pointerSizeInBits/8;
}
+ public static long getPageSize() {
+ return pageSize;
+ }
}