harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gshiman...@apache.org
Subject svn commit: r643341 - /harmony/enhanced/drlvm/trunk/vm/port/src/memaccess/linux/memaccess.cpp
Date Tue, 01 Apr 2008 09:51:03 GMT
Author: gshimansky
Date: Tue Apr  1 02:50:28 2008
New Revision: 643341

URL: http://svn.apache.org/viewvc?rev=643341&view=rev
Log:
Applied patch from HARMONY-5668
[drlvm][port][signals] Remove crash handler dependency from Port


Modified:
    harmony/enhanced/drlvm/trunk/vm/port/src/memaccess/linux/memaccess.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/port/src/memaccess/linux/memaccess.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/memaccess/linux/memaccess.cpp?rev=643341&r1=643340&r2=643341&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/memaccess/linux/memaccess.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/memaccess/linux/memaccess.cpp Tue Apr  1 02:50:28
2008
@@ -20,9 +20,9 @@
  */
 #include <sys/mman.h>
 #include <limits.h>
+#include <unistd.h>
 
 #include "port_general.h"
-#include "port_vmem.h"
 #include "port_barriers.h"
 
 #include "signals_internal.h"
@@ -55,8 +55,7 @@
     }
 
     // Try changing memory access
-    size_t* page_sizes = port_vmem_page_sizes();
-    size_t page_size = page_sizes[0];
+    size_t page_size = (size_t)sysconf(_SC_PAGE_SIZE);
 
     const void* addr = from ? src : dst;
 



Mime
View raw message