[PATCH] Call malloc_tsd_boot0 from malloc_init_hard_recursible

Cosmin Paraschiv cparaschiv at ixiacom.com
Mon Dec 14 11:57:27 PST 2015


On 11/18/2015 6:02 PM, Cosmin Paraschiv wrote:
> When using LinuxThreads, malloc bootstrapping deadlocks, since malloc_tsd_boot0
> ends up calling pthread_setspecific, which causes recursive allocation. Fix it,
> by moving the malloc_tsd_boot0 call to malloc_init_hard_recursible.
>
> The deadlock has been introduced by commit 8bb3198f72, when tsd_boot was split
> and the top half, tsd_boot0, got an extra tsd_wrapper_set call.
>
> Signed-off-by: Cosmin Paraschiv <cparaschiv at ixiacom.com>
> ---
>   src/jemalloc.c | 23 +++++++++++++++++------
>   1 file changed, 17 insertions(+), 6 deletions(-)
>

Bump.


More information about the jemalloc-discuss mailing list