aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-22 18:38:04 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-22 18:38:04 +0530
commitcc35896ea3e4532919ec81b17f36299117debe79 (patch)
tree8c8f6ebcd9774a5a48a689f9e639899a0050b7ab /include
parentc142eb253f3814f46527e9b37484041dd85702cf (diff)
downloadglibc-cc35896ea3e4532919ec81b17f36299117debe79.zip
glibc-cc35896ea3e4532919ec81b17f36299117debe79.tar.gz
glibc-cc35896ea3e4532919ec81b17f36299117debe79.tar.bz2
Simplify __malloc_initialized
Now that mcheck no longer needs to check __malloc_initialized (and no other third party hook can since the symbol is not exported), make the variable boolean and static so that it is used strictly within malloc. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/malloc.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/malloc.h b/include/malloc.h
index b77761f..f9c9610 100644
--- a/include/malloc.h
+++ b/include/malloc.h
@@ -5,12 +5,6 @@
# ifndef _ISOMAC
# include <rtld-malloc.h>
-/* In the GNU libc we rename the global variable
- `__malloc_initialized' to `__libc_malloc_initialized'. */
-#define __malloc_initialized __libc_malloc_initialized
-/* Nonzero if the malloc is already initialized. */
-extern int __malloc_initialized attribute_hidden;
-
struct malloc_state;
typedef struct malloc_state *mstate;