Merge "bionic: Set PTHREAD_STACK_MIN for page agnostic targets" into main am: fe690875d5
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2719582 Change-Id: Ia6a079dc076482a42756b69b962984aba9f7a173 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
6ffba3ea18
1 changed files with 6 additions and 0 deletions
|
@ -34,6 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <limits.h>
|
||||
#include <bits/page_size.h>
|
||||
#include <bits/pthread_types.h>
|
||||
#include <sched.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
@ -73,9 +74,14 @@ enum {
|
|||
#define PTHREAD_BARRIER_SERIAL_THREAD (-1)
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(__LP64__)
|
||||
#if defined(PAGE_SIZE)
|
||||
#define PTHREAD_STACK_MIN (4 * PAGE_SIZE)
|
||||
#else
|
||||
#define PTHREAD_STACK_MIN 65536
|
||||
#endif
|
||||
#else
|
||||
#define PTHREAD_STACK_MIN (2 * PAGE_SIZE)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue