OSDN Git Service

Fix pthread_attr_getstack under valgrind.
authorElliott Hughes <enh@google.com>
Thu, 9 Oct 2014 21:01:47 +0000 (14:01 -0700)
committerElliott Hughes <enh@google.com>
Fri, 10 Oct 2014 17:57:48 +0000 (10:57 -0700)
commit2f25cf373ca7c875956a7c06483b30d381296817
tree0299f2f5c5aaac06b9b942cc9139d638df6fcbdf
parent7f4618cbc8bda2bd98f1361c55db63b16f2b9b50
Fix pthread_attr_getstack under valgrind.

valgrind seems to mess with the stack enough that the kernel will
report "[stack:pid]" rather than "[stack]" in /proc/self/maps, so
switch to the task-specific file instead to force "[stack]". (There
are two conditions in the kernel code that decides which form to
output.)

Bug: 17897476

(cherry picked from commit 9afb2f2106a5d659854c175c574c1c31e0e205a2)

Change-Id: I92c331ef6fb5868af49e75bc595710d290a95f5b
libc/bionic/pthread_attr.cpp