mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
malloc: Improve malloc initialization
Move malloc initialization to __libc_early_init. Use a hidden __ptmalloc_init for initialization and a weak call to avoid pulling in the system malloc in a static binary. All previous initialization checks can now be removed. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
@@ -40,4 +40,7 @@ void __malloc_arena_thread_freeres (void) attribute_hidden;
|
||||
/* Activate a standard set of debugging hooks. */
|
||||
void __malloc_check_init (void) attribute_hidden;
|
||||
|
||||
/* Initialize malloc. */
|
||||
void __ptmalloc_init (void) attribute_hidden;
|
||||
|
||||
#endif /* _MALLOC_INTERNAL_H */
|
||||
|
Reference in New Issue
Block a user