mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-30 08:37:29 +03:00
Don't catch fork()ing events for Native Client.
Native Client doesn't allow forking, thus there is no need to catch fork()ing events for Native Client. Additionally, without this commit, jemalloc will introduce an unresolved pthread_atfork() in PNaCl Rust bins.
This commit is contained in:
parent
9c3a10fdf6
commit
94ed6812bc
1 changed files with 1 additions and 1 deletions
|
|
@ -792,7 +792,7 @@ malloc_init_hard(void)
|
|||
ncpus = malloc_ncpus();
|
||||
|
||||
#if (!defined(JEMALLOC_MUTEX_INIT_CB) && !defined(JEMALLOC_ZONE) \
|
||||
&& !defined(_WIN32))
|
||||
&& !defined(_WIN32) && !defined(__native_client__))
|
||||
/* LinuxThreads's pthread_atfork() allocates. */
|
||||
if (pthread_atfork(jemalloc_prefork, jemalloc_postfork_parent,
|
||||
jemalloc_postfork_child) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue