[PATCH v2] Call malloc_tsd_boot0 from malloc_init_hard_recursible

Jason Evans jasone at canonware.com
Mon Jan 11 11:12:15 PST 2016


On Dec 23, 2015, at 10:32 AM, Cosmin Paraschiv <cparaschiv at ixiacom.com> 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 | 21 ++++++++++++++++-----
> 1 file changed, 16 insertions(+), 5 deletions(-)
> 
> <0001-Call-malloc_tsd_boot0-from-malloc_init_hard_recursib.patch>_______________________________________________
> 

Integrated:

	https://github.com/jemalloc/jemalloc/commit/9cb481a73f6d2b518f695a669c1f850e477fdd2c

Thanks,
Jason


More information about the jemalloc-discuss mailing list