commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r809866 - in /commons/sandbox/runtime/trunk/src: main/java/org/apache/commons/runtime/Platform.java test/org/apache/commons/runtime/TestMemoryMap.java
Date Tue, 01 Sep 2009 07:35:22 GMT
Author: mturk
Date: Tue Sep  1 07:35:22 2009
New Revision: 809866

URL: http://svn.apache.org/viewvc?rev=809866&view=rev
Log:
rename pagesize_align to ganularity

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Platform.java
    commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemoryMap.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=809866&r1=809865&r2=809866&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 Tue
Sep  1 07:35:22 2009
@@ -81,7 +81,7 @@
         MAX_PATH                        =   i[6];
         ABS_MAX_PATH                    =   i[7];
         PAGESIZE                        =   i[8];
-        PAGESIZE_ALIGN                  =   i[9];
+        GRANULARITY                     =   i[9];
 
         if (i[10] == 16)
             STRUCT_ALIGN = 4;
@@ -142,7 +142,7 @@
      * The granualarity of the starting address at wich {@code memory} pages
      * can be allocated.
      */
-    public static final int PAGESIZE_ALIGN;
+    public static final int GRANULARITY;
 
     /**
      * Size of the {@code structure} alignment.

Modified: commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemoryMap.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemoryMap.java?rev=809866&r1=809865&r2=809866&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemoryMap.java (original)
+++ commons/sandbox/runtime/trunk/src/test/org/apache/commons/runtime/TestMemoryMap.java Tue
Sep  1 07:35:22 2009
@@ -85,10 +85,10 @@
         }
         if (pa == null) {
             try {
-                pa = map.map(Platform.PAGESIZE_ALIGN, 128);
-                System.out.println("Map requires Platform.PAGESIZE_ALIGN (" +
-                                   Platform.PAGESIZE_ALIGN +
-                                   ") bytes offset alignment");
+                pa = map.map(Platform.GRANULARITY, 128);
+                System.out.println("Map requires Platform.GRANULARITY (" +
+                                   Platform.GRANULARITY +
+                                   " bytes) offset alignment");
             } catch (IOException e) {
                 // Ignore
             } catch (SecurityException x) {



Mime
View raw message