mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-10 05:03:06 +03:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user