On Oct 21, 2013, at 2:11 PM, Leonard Crestez <[email protected]> wrote:
> This function causes recursive allocation on LinuxThreads.
> 
> Signed-off-by: Crestez Dan Leonard <[email protected]>
> ---
>  src/jemalloc.c | 23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)

We should probably keep the pthread_atfork() call prior to releasing init_lock 
(just need to move it up a couple of lines).  Although jemalloc cannot 
completely prevent races between allocator initialization and fork(2), it can 
at least prevent races if all threads allocate prior to the fork().

Thanks,
Jason
_______________________________________________
jemalloc-discuss mailing list
[email protected]
http://www.canonware.com/mailman/listinfo/jemalloc-discuss

Reply via email to