OSDN Git Service

Fix alignment error for pthread_internal_t/pthread stack.
authorYabin Cui <yabinc@google.com>
Fri, 20 Mar 2015 17:58:04 +0000 (10:58 -0700)
committerYabin Cui <yabinc@google.com>
Fri, 20 Mar 2015 21:41:52 +0000 (14:41 -0700)
commita2db50d5d7fa67b297eddd1c0549f08ea4b6a950
treee3b0bb4b01b2b7caf8f5f0ad5be05517592915fb
parent4149dc944bbe3c5f1c14fc998106975e68bdd6bf
Fix alignment error for pthread_internal_t/pthread stack.

aligned attribute can only control compiler's behavior, but we
are manually allocating pthread_internal_t. So we need to make
sure of alignment manually.

Change-Id: Iea4c46eadf10dfd15dc955c5f41cf6063cfd8536
libc/bionic/pthread_create.cpp
libc/bionic/pthread_internal.h