Use real pthread_create for creating background threads.

This commit is contained in:
Qi Wang 2017-05-30 20:45:29 -07:00 committed by Qi Wang
parent 9a86c9bd30
commit 508f54b02b
2 changed files with 9 additions and 3 deletions

View file

@ -30,7 +30,7 @@ static malloc_mutex_t *postponed_mutexes = NULL;
static void
pthread_create_once(void) {
pthread_create_fptr = load_pthread_create_fptr();
isthreaded = true;
assert(isthreaded);
}
JEMALLOC_EXPORT int