]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Improve malloc initialization
authorWilco Dijkstra <wilco.dijkstra@arm.com>
Thu, 1 May 2025 19:58:38 +0000 (19:58 +0000)
committerWilco Dijkstra <wilco.dijkstra@arm.com>
Mon, 12 May 2025 16:10:28 +0000 (16:10 +0000)
commit25d37948c9f3f483d63302b9967b975d3bd74a4e
tree246f273f382da6e177b7950b14d27930e282c7e7
parentf451a02a8c3c0bc6b41dac5e9e6ad49dd1c9529c
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>
elf/libc_early_init.c
malloc/arena.c
malloc/malloc-check.c
malloc/malloc-internal.h
malloc/malloc.c