From 608d481e6bf29f1b2aea0268b3130ad026f004ed Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Jan 2001 00:12:23 +0000 Subject: Update. 2001-01-21 Franz Sirl * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset. 2001-01-21 Ulrich Drepper * malloc/malloc.c: Remove a few unnecessary initializers of global variables. --- malloc/malloc.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'malloc') 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 and Doug Lea , 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; -- cgit v1.2.3