Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Nov 2003 21:21:21 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 43114 for review
Message-ID:  <200311280521.hAS5LLtY079414@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=43114

Change 43114 by marcel@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311280521.hAS5LLtY079414>