mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 00:23:33 +03:00
Not re-enable background thread after fork.
Avoid calling pthread_create in postfork handlers.
This commit is contained in:
parent
464cb60490
commit
b83b5ad44a
3 changed files with 49 additions and 36 deletions
|
|
@ -340,7 +340,6 @@ arena_new_create_background_thread(tsdn_t *tsdn, unsigned ind) {
|
|||
if (ind == 0) {
|
||||
return;
|
||||
}
|
||||
/* background_thread_create() handles reentrancy internally. */
|
||||
if (have_background_thread) {
|
||||
bool err;
|
||||
malloc_mutex_lock(tsdn, &background_thread_lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue