about summary refs log tree commit diff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 17:27:38 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-02-09 17:28:33 +0000
commit34f168fb82b992edd3549222486704ee3dd9d1de (patch)
tree42cc428b4eaa68a221007b27f1a0c4bac59fc9a1 /sysdeps/mach
parent74159dc58af2ce8a32b62daecd587f29ff7931f2 (diff)
downloadglibc-34f168fb82b992edd3549222486704ee3dd9d1de.tar.gz
glibc-34f168fb82b992edd3549222486704ee3dd9d1de.tar.xz
glibc-34f168fb82b992edd3549222486704ee3dd9d1de.zip
htl: Fix default guard size
When it is not hardcoded by the architecture with PAGESIZE, we need to
use the dynamic values from __vm_page_size.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/htl/pt-sysdep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/htl/pt-sysdep.c b/sysdeps/mach/hurd/htl/pt-sysdep.c
index 32a290c4ee..84d191475d 100644
--- a/sysdeps/mach/hurd/htl/pt-sysdep.c
+++ b/sysdeps/mach/hurd/htl/pt-sysdep.c
@@ -78,6 +78,10 @@ _init_routine (void *stack)
      valid if the main thread terminates.  */
   thread->stack = 0;
 
+#ifndef PAGESIZE
+  __pthread_default_attr.__guardsize = __vm_page_size;
+#endif
+
   ___pthread_self = thread;
 
   /* Decrease the number of threads, to take into account that the