]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Initialize __libc_pagesize early.
authorUlrich Drepper <drepper@redhat.com>
Fri, 6 Aug 1999 22:58:56 +0000 (22:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 6 Aug 1999 22:58:56 +0000 (22:58 +0000)
malloc/malloc.c

index a2b80a99975aebf34d44f79fbab31b51711cb566..eba2a6091513a6d63fbeb2c1df4581d096032f86 100644 (file)
@@ -1649,6 +1649,9 @@ ptmalloc_init __MALLOC_P((void))
 
   if(__malloc_initialized >= 0) return;
   __malloc_initialized = 0;
+#ifdef _LIBC
+  __libc_pagesize = __getpagesize();
+#endif
 #ifndef NO_THREADS
 #if defined _LIBC || defined MALLOC_HOOKS
   /* With some threads implementations, creating thread-specific data
@@ -1663,7 +1666,6 @@ ptmalloc_init __MALLOC_P((void))
   /* Initialize the pthreads interface. */
   if (__pthread_initialize != NULL)
     __pthread_initialize();
-  __libc_pagesize = __getpagesize();
 #endif
   mutex_init(&main_arena.mutex);
   mutex_init(&list_lock);