OSDN Git Service

Format code to calculate thread stack and signal stack.
authorYabin Cui <yabinc@google.com>
Thu, 31 Mar 2016 00:48:50 +0000 (17:48 -0700)
committerYabin Cui <yabinc@google.com>
Mon, 4 Apr 2016 23:19:39 +0000 (16:19 -0700)
commitff624c2c174b3f19e8c6e0c8f782cdd0caa26f74
tree38fa4a1037feb3a24fcdbbd968018ef10416cba8
parenteaf50be332f015bd90e45d4f9d111b24cd230f00
Format code to calculate thread stack and signal stack.

The code to calculate thread stack and signal stack looks weird:
the thread stack size and signal stack size are related with
each other on 32-bit mode, but not on 64-bit mode. So change the
code to make the logic more resonable. This doesn't change anything
as we have defined SIGSTKSZ to 16K on arm64.

Bug: 28005110

Change-Id: I04d2488cfb96ee7e2d894d062c66cef950fec418
libc/bionic/pthread_internal.h