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>
Thu, 9 Oct 2014 21:01:47 +0000 (14:01 -0700)
commit9afb2f2106a5d659854c175c574c1c31e0e205a2
treecbcc21f633b85ff022827d5e2c3ac87db3a5e2c4
parentd0944d9ed38be0d74c3d8876f0f36b9ddc0ce38c
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
Change-Id: Iff85ceb6d52e8716251fab4e45d95a27184c5529
libc/bionic/pthread_attr.cpp