+2011-06-30 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
+
+ * nptl/sysdeps/unix/sysv/linux/aio_misc.h
+ (__aio_create_helper_thread): Remove call to
+ pthread_attr_setstacksize () which set the stacksize to
+ PTHREAD_STACK_MIN. This is too small if large amounts of TLS are in
+ use. Removing this call effectively sets stacksize to 'default'.
+
2011-03-15 Alan Modra <amodra@gmail.com>
* elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
pthread_attr_init (&attr);
pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
- /* The helper thread needs only very little resources. */
- (void) pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
+ /* Don't set the stacksize to PTHREAD_STACK_MIN. Let it default, otherwise
+ the stack may be too small if TLS is in use. */
/* Block all signals in the helper thread. To do this thoroughly we
temporarily have to block all signals here. */