]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blobdiff - libc/bionic/pthread_exit.cpp
Use mmap to create the pthread_internal_t.
[android-sdk/platform-bionic.git] / libc / bionic / pthread_exit.cpp
index 6cd5311ede5fc1ef47428eddf02f4d40ae88fd4e..a6bb36312c075c39959d0284617d247dfe25d542 100644 (file)
@@ -112,12 +112,6 @@ void pthread_exit(void* return_value) {
   }
   pthread_mutex_unlock(&g_thread_list_lock);
 
-  // Perform a second key cleanup. When using jemalloc, a call to free from
-  // _pthread_internal_remove_locked causes the memory associated with a key
-  // to be reallocated.
-  // TODO: When b/16847284 is fixed this call can be removed.
-  pthread_key_clean_all();
-
   if (user_allocated_stack) {
     // Cleaning up this thread's stack is the creator's responsibility, not ours.
     __exit(0);