diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-07-22 18:38:04 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-07-22 18:38:04 +0530 |
commit | cc35896ea3e4532919ec81b17f36299117debe79 (patch) | |
tree | 8c8f6ebcd9774a5a48a689f9e639899a0050b7ab /include | |
parent | c142eb253f3814f46527e9b37484041dd85702cf (diff) | |
download | glibc-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.h | 6 |
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; |