Browse Source

And use 16k pages on ia64. Maybe this should be a configure thing

svn:r14073
Peter Palfrader 17 years ago
parent
commit
0cccf7375b
2 changed files with 6 additions and 3 deletions
  1. 2 2
      ChangeLog
  2. 4 1
      src/common/OpenBSD_malloc_Linux.c

+ 2 - 2
ChangeLog

@@ -24,8 +24,8 @@ Changes in version 0.2.1.1-alpha - 2008-??-??
     - Use proper log levels in the testsuite call of get_interface_address6().
     - When using a nonstandard malloc, do not use the platform values for
       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
-    - Make the openbsd malloc code use 8k pages on alpha CPUs.  Bugfix on
-      0.2.0.x.
+    - Make the openbsd malloc code use 8k pages on alpha CPUs and 16k pages
+      on ia64.  Bugfix on 0.2.0.x.
     - Detect mismatched page sizes when using --enable-openbsd-malloc.
       Bugfix on 0.2.0.x.
     - Stop giving double-close warn when we reject an address for client DNS.

+ 4 - 1
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)