diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-08-05 06:15:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-08-05 06:15:04 +0000 |
commit | 234dd7a6ba1a9783f43d500f8ee745b2f5b4db5a (patch) | |
tree | 7b78bb63ef3d2c1ebfc89b59759068f2e394df5c /linuxthreads/internals.h | |
parent | 0a8d92310f5c5e0c09c8ff9a79ac652a66d5b3da (diff) | |
download | glibc-234dd7a6ba1a9783f43d500f8ee745b2f5b4db5a.tar glibc-234dd7a6ba1a9783f43d500f8ee745b2f5b4db5a.tar.gz glibc-234dd7a6ba1a9783f43d500f8ee745b2f5b4db5a.tar.bz2 glibc-234dd7a6ba1a9783f43d500f8ee745b2f5b4db5a.zip |
Update.
* internals.h: Declare __pthread_max_stacksize.
* pthread.c (__pthread_max_stacksize): New variable.
(__pthread_initialize_manager): Determine __pthread_initialize_manager
value.
* manager.c (thread_segment): Return always NULL if FLOATING_STACKS.
(pthread_allocate_stack): Allow kernel to choose stack address if
FLOATING_STACKS. This also handles variable-sized stacks.
Always allocate stack and guardoage together. Use mprotect to
change guardpage access.
* sysdeps/i386/useldt.h: Define FLOATING_STACKS and
ARCH_STACK_MAX_SIZE.
* attr.c (__pthread_attr_setstacksize): Also test value against
upper limit.
Diffstat (limited to 'linuxthreads/internals.h')
-rw-r--r-- | linuxthreads/internals.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index fa6bf6b9cd..f5915529b2 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -272,6 +272,11 @@ extern int __pthread_manager_reader; extern char *__pthread_manager_thread_bos; extern char *__pthread_manager_thread_tos; +#ifdef FLOATING_STACKS +/* Maximum stack size. */ +extern size_t __pthread_max_stacksize; +#endif + /* Pending request for a process-wide exit */ extern int __pthread_exit_requested, __pthread_exit_code; |