Author: mturk Date: Thu Jun 18 10:21:58 2009 New Revision: 786005 URL: http://svn.apache.org/viewvc?rev=786005&view=rev Log: Add PAGESIZE to the Platform class
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Platform.java commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestOS.java Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Platform.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Platform.java?rev=786005&r1=786004&r2=786005&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Platform.java (original) +++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Platform.java Thu Jun 18 10:21:58 2009 @@ -56,6 +56,7 @@ DATA_MODEL = i[5]; MAX_PATH = i[6]; ABS_MAX_PATH = i[7]; + PAGESIZE = i[8]; } @@ -102,4 +103,9 @@ */ public static final int ABS_MAX_PATH; + /** + * Size of the {...@code memory} page allocation granularity. + */ + public static final int PAGESIZE; + } Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestOS.java URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestOS.java?rev=786005&r1=786004&r2=786005&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestOS.java (original) +++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestOS.java Thu Jun 18 10:21:58 2009 @@ -77,6 +77,7 @@ System.out.println("Int size " + Platform.SIZEOF_INT); System.out.println("Max path " + Platform.MAX_PATH); System.out.println("Abs path " + Platform.ABS_MAX_PATH); + System.out.println("Page size " + Platform.PAGESIZE); }