[PATCH v2] Call malloc_tsd_boot0 from malloc_init_hard_recursible
Cosmin Paraschiv
cparaschiv at ixiacom.com
Wed Dec 23 10:32:12 PST 2015
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(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Call-malloc_tsd_boot0-from-malloc_init_hard_recursib.patch
Type: text/x-patch
Size: 1532 bytes
Desc: not available
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20151223/c34a6bbd/attachment.bin>
More information about the jemalloc-discuss
mailing list