* The following bugs are resolved with this release:
6779, 6783, 9696, 10103, 10709, 11589, 12403, 12847, 12868, 12852, 12874,
- 12885, 12892, 12907, 12922, 12935, 13007, 13021, 13067, 13068, 13090,
- 13092, 13096, 13114, 13118, 13123, 13134, 13138, 13147, 13150, 13166,
- 13179, 13185, 13189, 13192, 13268, 13276, 13282, 13291, 13305, 13328,
- 13335, 13337, 13344, 13358, 13367, 13413, 13416, 13423, 13439, 13446,
- 13472, 13484, 13506, 13515, 13523, 13524, 13538, 13540
+ 12885, 12892, 12907, 12922, 12935, 13007, 13021, 13067, 13068, 13088,
+ 13090, 13092, 13096, 13114, 13118, 13123, 13134, 13138, 13147, 13150,
+ 13166, 13179, 13185, 13189, 13192, 13268, 13276, 13282, 13291, 13305,
+ 13328, 13335, 13337, 13344, 13358, 13367, 13413, 13416, 13423, 13439,
+ 13446, 13472, 13484, 13506, 13515, 13523, 13524, 13538, 13540
* New program pldd to list loaded object of a process
Implemented by Ulrich Drepper.
/* Make sure it meets the minimum size that allocate_stack
(allocatestack.c) will demand, which depends on the page size. */
- const uintptr_t pagesz = __sysconf (_SC_PAGESIZE);
+ const uintptr_t pagesz = GLRO(dl_pagesize);
const size_t minstack = pagesz + __static_tls_size + MINIMAL_REST_STACK;
if (limit.rlim_cur < minstack)
limit.rlim_cur = minstack;
}
strong_alias (__pthread_initialize_minimal_internal,
__pthread_initialize_minimal)
+
+
+size_t
+__pthread_get_minstack (const pthread_attr_t *attr)
+{
+ struct pthread_attr *iattr = (struct pthread_attr *) attr;
+
+ return (GLRO(dl_pagesize) + __static_tls_size + PTHREAD_STACK_MIN
+ + iattr->guardsize);
+}
-/* Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2003-2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
and should go away automatically when canceled. */
pthread_attr_t attr;
(void) pthread_attr_init (&attr);
- (void) pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
+ (void) pthread_attr_setstacksize (&attr, __pthread_get_minstack (&attr));
/* Block all signals in the helper thread but SIGSETXID. To do this
thoroughly we temporarily have to block all signals here. The