[PATCH] malloc: Ensure that ptmalloc_init runs only once

Siddhesh Poyarekar siddhesh@sourceware.org
Fri Jun 18 06:28:38 GMT 2021


On 6/18/21 11:25 AM, Florian Weimer wrote:
> I think it's a three-state value to avoid calling
> __malloc_initialize_hook multiple times.  This is all a bit
> under-documented unfortunately.

How so?  It's only called from ptmalloc_init now AFAICT and running 
ptmalloc_init concurrently won't work anyway.

Siddhesh


More information about the Libc-alpha mailing list