[PATCH v3] malloc: Improve malloc initialization

Florian Weimer fw@deneb.enyo.de
Fri May 2 12:29:24 GMT 2025


* Wilco Dijkstra:

> 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.
>
> Passes regress, OK for commit?

Can't you remove __malloc_initialized altogether?  And find some way
to avoid the fork lock in case of interposed malloc?


More information about the Libc-alpha mailing list