aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Merger <noreply-android-build-merger@google.com>2019-03-08 23:32:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-03-08 23:32:34 +0000
commit45a766773b41c2967b51b9a39efa31e907e3bf14 (patch)
treea8a6930da3fad04ed79054576abfbb0c3980e033
parentd3c8eccb33a43eb084dffed1f414344eac728b8e (diff)
parentb655aac271f3a29569f18948b54c9b7cddced3a8 (diff)
downloadbionic-45a766773b41c2967b51b9a39efa31e907e3bf14.tar.gz
Merge "Snap for 5240760 from 68f7efc044b4ff9813fba79e3e16e5804c4df651 to pi-platform-release am: 1863ecbca3" into pie-gsi
-rw-r--r--libc/bionic/pthread_create.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp
index 21a707ba0..8825c6f24 100644
--- a/libc/bionic/pthread_create.cpp
+++ b/libc/bionic/pthread_create.cpp
@@ -65,8 +65,6 @@ bool __init_tls(pthread_internal_t* thread) {
return false;
}
- prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, allocation, allocation_size, "bionic TLS guard");
-
// Carve out the writable TLS section.
thread->bionic_tls = reinterpret_cast<bionic_tls*>(static_cast<char*>(allocation) +
PTHREAD_GUARD_SIZE);
@@ -77,7 +75,6 @@ bool __init_tls(pthread_internal_t* thread) {
return false;
}
- prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, thread->bionic_tls, BIONIC_TLS_SIZE, "bionic TLS");
return true;
}
@@ -105,7 +102,6 @@ void __init_alternate_signal_stack(pthread_internal_t* thread) {
// We can only use const static allocated string for mapped region name, as Android kernel
// uses the string pointer directly when dumping /proc/pid/maps.
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ss.ss_sp, ss.ss_size, "thread signal stack");
- prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, stack_base, PTHREAD_GUARD_SIZE, "thread signal stack guard");
}
}
@@ -184,8 +180,6 @@ static void* __create_thread_mapped_space(size_t mmap_size, size_t stack_guard_s
munmap(space, mmap_size);
return NULL;
}
- prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, space, stack_guard_size, "thread stack guard");
-
return space;
}