Skip to content

Commit

Permalink
Bug 738709 - Don't call pthread_atfork from jemalloc on OSX. r=jlebar
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Apr 5, 2012
1 parent 680d341 commit 8a7b1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memory/jemalloc/jemalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5920,7 +5920,7 @@ malloc_init_hard(void)
#endif
}

#if !defined(MOZ_MEMORY_WINDOWS)
#if !defined(MOZ_MEMORY_WINDOWS) && !defined(MOZ_MEMORY_DARWIN)
/* Prevent potential deadlock on malloc locks after fork. */
pthread_atfork(_malloc_prefork, _malloc_postfork, _malloc_postfork);
#endif
Expand Down

0 comments on commit 8a7b1ac

Please sign in to comment.