aboutsummaryrefslogtreecommitdiff
path: root/src/common/OpenBSD_malloc_Linux.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-03-17 09:46:18 +0000
committerPeter Palfrader <peter@palfrader.org>2008-03-17 09:46:18 +0000
commit0cccf7375b6ced5a27df4ff04ee4c80eb20abef4 (patch)
tree9ca64d001f8dec501c0cd45d4878ec1320e3d41f /src/common/OpenBSD_malloc_Linux.c
parent2ed4b818cb13c88ea2c640682b878f3b1c841591 (diff)
downloadtor-0cccf7375b6ced5a27df4ff04ee4c80eb20abef4.tar.gz
tor-0cccf7375b6ced5a27df4ff04ee4c80eb20abef4.zip
And use 16k pages on ia64. Maybe this should be a configure thing
svn:r14073
Diffstat (limited to 'src/common/OpenBSD_malloc_Linux.c')
-rw-r--r--src/common/OpenBSD_malloc_Linux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/OpenBSD_malloc_Linux.c b/src/common/OpenBSD_malloc_Linux.c
index 7252ead784..0a8523cc36 100644
--- a/src/common/OpenBSD_malloc_Linux.c
+++ b/src/common/OpenBSD_malloc_Linux.c
@@ -98,7 +98,10 @@ static pthread_mutex_t gen_mutex = PTHREAD_MUTEX_INITIALIZER;
#if defined(__sparc__) || defined(__alpha__)
#define malloc_pageshift 13U
-#endif /* __sparc__ */
+#endif
+#if defined(__ia64__)
+#define malloc_pageshift 14U
+#endif
#ifndef malloc_pageshift
#define malloc_pageshift (PGSHIFT)