diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-22 00:12:23 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-22 00:12:23 +0000 |
commit | 608d481e6bf29f1b2aea0268b3130ad026f004ed (patch) | |
tree | 19f644b47fe3959e1404d9711d5177aa83b5d59a /malloc/malloc.c | |
parent | a5fdf99b7c4d23acbc3d3f77f6c4d4456ff6006f (diff) | |
download | glibc-608d481e6bf29f1b2aea0268b3130ad026f004ed.tar.gz glibc-608d481e6bf29f1b2aea0268b3130ad026f004ed.tar.xz glibc-608d481e6bf29f1b2aea0268b3130ad026f004ed.zip |
Update.
2001-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset. 2001-01-21 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c: Remove a few unnecessary initializers of global variables.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r-- | malloc/malloc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 1ac3b5da45..311fd174a4 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1,5 +1,5 @@ /* Malloc implementation for multiple threads without lock contention. - Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> and Doug Lea <dl@cs.oswego.edu>, 1996. @@ -1538,7 +1538,7 @@ static tsd_key_t arena_key; static mutex_t list_lock = MUTEX_INITIALIZER; #if THREAD_STATS -static int stat_n_heaps = 0; +static int stat_n_heaps; #define THREAD_STAT(x) x #else #define THREAD_STAT(x) do ; while(0) @@ -1556,11 +1556,11 @@ static int check_action = DEFAULT_CHECK_ACTION; static char* sbrk_base = (char*)(-1); /* The maximum memory obtained from system via sbrk */ -static unsigned long max_sbrked_mem = 0; +static unsigned long max_sbrked_mem; /* The maximum via either sbrk or mmap (too difficult to track with threads) */ #ifdef NO_THREADS -static unsigned long max_total_mem = 0; +static unsigned long max_total_mem; #endif /* The total memory obtained from system via sbrk */ @@ -1568,13 +1568,13 @@ static unsigned long max_total_mem = 0; /* Tracking mmaps */ -static unsigned int n_mmaps = 0; -static unsigned int max_n_mmaps = 0; -static unsigned long mmapped_mem = 0; -static unsigned long max_mmapped_mem = 0; +static unsigned int n_mmaps; +static unsigned int max_n_mmaps; +static unsigned long mmapped_mem; +static unsigned long max_mmapped_mem; /* Mapped memory in non-main arenas (reliable only for NO_THREADS). */ -static unsigned long arena_mem = 0; +static unsigned long arena_mem; |