diff options
author | Yabin Cui <yabinc@google.com> | 2014-12-01 22:37:56 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2014-12-02 10:39:25 -0800 |
commit | 8574a0670bf698b8d2f817098f9d825c4be03a68 (patch) | |
tree | f01c1cd0cab5ff4bad74f9be90cd1dc0cc822513 /libc/bionic/pthread_exit.cpp | |
parent | 46d0b81a9465bf74fe44a881365c332dc6173f2f (diff) | |
download | android_bionic-8574a0670bf698b8d2f817098f9d825c4be03a68.tar.gz android_bionic-8574a0670bf698b8d2f817098f9d825c4be03a68.tar.bz2 android_bionic-8574a0670bf698b8d2f817098f9d825c4be03a68.zip |
Use mmap to create the pthread_internal_t.
Bug: 16847284
Change-Id: I488fa236f57aa3acb29b4ffbbab2fab51b0653be
Diffstat (limited to 'libc/bionic/pthread_exit.cpp')
-rw-r--r-- | libc/bionic/pthread_exit.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libc/bionic/pthread_exit.cpp b/libc/bionic/pthread_exit.cpp index 6cd5311ed..a6bb36312 100644 --- a/libc/bionic/pthread_exit.cpp +++ b/libc/bionic/pthread_exit.cpp @@ -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); |