PERFORCE change 43114 for review
Marcel Moolenaar
marcel at FreeBSD.org
Thu Nov 27 21:21:22 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=43114
Change 43114 by marcel at marcel_nfs on 2003/11/27 21:20:57
Remove the ia64 specific behaviour to adjust to the page size
as reported by the kernel. It adds initialization overhead and
causes incompatible behaviour of returning NULL for zero-sized
allocations for most configure scripts.
Affected files ...
.. //depot/projects/ia64/lib/libc/stdlib/malloc.c#21 edit
Differences ...
==== //depot/projects/ia64/lib/libc/stdlib/malloc.c#21 (text+ko) ====
@@ -50,9 +50,8 @@
# define malloc_minsize 16U
# endif
# if defined(__ia64__)
- static int malloc_pageshift_value;
-# define malloc_pageshift malloc_pageshift_value
-# define malloc_minsize 16U
+# define malloc_pageshift 13U
+# define malloc_minsize 16U
# endif
# if defined(__alpha__)
# define malloc_pageshift 13U
@@ -414,11 +413,6 @@
int i, j;
int save_errno = errno;
-#ifdef __ia64__
- malloc_pageshift = 0;
- while ((1L << malloc_pageshift) < getpagesize())
- malloc_pageshift++;
-#endif
INIT_MMAP();
#ifdef MALLOC_EXTRA_SANITY
More information about the p4-projects
mailing list