Bug #22640 ยป 0001-Do-not-take-the-guard-off-the-thread-stack-size-on-g.patch
| thread_pthread.c | ||
|---|---|---|
|
CHECK_ERR(pthread_attr_getstackaddr(&attr, addr));
|
||
|
CHECK_ERR(pthread_attr_getstacksize(&attr, size));
|
||
|
# endif
|
||
|
# ifdef HAVE_PTHREAD_ATTR_GETGUARDSIZE
|
||
|
# if defined(__GLIBC__) && defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 27)
|
||
|
/* glibc allocates the guard below the stack since 2.27, and
|
||
|
* does not count it in the size */
|
||
|
# elif defined HAVE_PTHREAD_ATTR_GETGUARDSIZE
|
||
|
CHECK_ERR(pthread_attr_getguardsize(&attr, &guard));
|
||
|
# else
|
||
|
guard = RB_THREAD_PAGE_SIZE;
|
||