diff options
author | Elliott Hughes <enh@google.com> | 2014-07-10 19:16:45 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-07-10 18:27:51 +0000 |
commit | f0f8cd1ff3e7f7124cab8a687370b51df4ec93de (patch) | |
tree | 3e8e0aec84c044d4471cf76b0348aaccce7df1f8 | |
parent | cd23370ca737dffc49166f8aacd19a025e72266f (diff) | |
parent | e959a3b3157e38ebda4ce6f86efb5644faa4988b (diff) | |
download | bionic-f0f8cd1ff3e7f7124cab8a687370b51df4ec93de.zip bionic-f0f8cd1ff3e7f7124cab8a687370b51df4ec93de.tar.gz bionic-f0f8cd1ff3e7f7124cab8a687370b51df4ec93de.tar.bz2 |
Merge "Remove the global lock around thread stack creation."
-rw-r--r-- | libc/bionic/pthread_create.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index d1aeb93..174e308 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp @@ -47,8 +47,6 @@ extern "C" __LIBC_HIDDEN__ void __init_user_desc(struct user_desc*, int, void*); #endif -static pthread_mutex_t g_pthread_stack_creation_lock = PTHREAD_MUTEX_INITIALIZER; - extern "C" int __isthreaded; // This code is used both by each new pthread and the code that initializes the main thread. @@ -104,8 +102,6 @@ int __init_thread(pthread_internal_t* thread, bool add_to_thread_list) { } static void* __create_thread_stack(pthread_internal_t* thread) { - ScopedPthreadMutexLocker lock(&g_pthread_stack_creation_lock); - // Create a new private anonymous map. int prot = PROT_READ | PROT_WRITE; int flags = MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE; |