diff options
author | Ryan Prichard <rprichard@google.com> | 2019-06-17 17:57:19 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2019-07-23 02:06:51 +0000 |
commit | 03cef383ba4be80992c12fae25dd1fd9be0ce2e0 (patch) | |
tree | 878b2d62e79384dd4fa822f44ab8091526f97f00 /linker/linker.cpp | |
parent | 9cf76012aa5edc11050920ab1b65817c1be1a112 (diff) |
Name stack+tls VMAs with PR_SET_VMA_ANON_NAME
Bionic creates a single thread mapping to hold a thread's stack and static
TLS memory. Use PR_SET_VMA_ANON_NAME to name this region
"stack_and_tls:tid". dumpsys meminfo can report this region as "Stack"
memory.
The main thread's memory is instead named stack_and_tls:main, and the VMA
is renamed to stack_and_tls:main in a post-fork child.
For the main thread, and threads using pthread_attr_setstack, Bionic still
creates the stack_and_tls mapping, but it only has TLS memory in it.
Bug: http://b/134795155
Test: run "dumpsys meminfo" and verify that this CL increases the reported
stack memory usage from about 4MB to 21MB.
Change-Id: Id1f39ff083329e83426130b4ef94222ffacb90ae
Merged-In: Id1f39ff083329e83426130b4ef94222ffacb90ae
Diffstat (limited to 'linker/linker.cpp')
0 files changed, 0 insertions, 0 deletions