(__pthread_attr_init_2_1): Double __guardsize size if
authordrepper <drepper>
Tue, 23 Sep 2003 06:12:59 +0000 (06:12 +0000)
committerdrepper <drepper>
Tue, 23 Sep 2003 06:12:59 +0000 (06:12 +0000)
NEED_SEPARATE_REGISTER_STACK is defined.

linuxthreads/attr.c

index 5bef265..56f6cba 100644 (file)
@@ -36,7 +36,11 @@ int __pthread_attr_init_2_1(pthread_attr_t *attr)
   attr->__schedparam.sched_priority = 0;
   attr->__inheritsched = PTHREAD_EXPLICIT_SCHED;
   attr->__scope = PTHREAD_SCOPE_SYSTEM;
+#ifdef NEED_SEPARATE_REGISTER_STACK
+  attr->__guardsize = ps + ps;
+#else
   attr->__guardsize = ps;
+#endif
   attr->__stackaddr = NULL;
   attr->__stackaddr_set = 0;
   attr->__stacksize = STACK_SIZE - ps;