This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
linuxthreads: why limit stack size to STACK_SIZE when not using FLOATING_STACK ?
- To: <libc-alpha at sources dot redhat dot com>
- Subject: linuxthreads: why limit stack size to STACK_SIZE when not using FLOATING_STACK ?
- From: "Ken Whaley" <ken at believe dot com>
- Date: Tue, 7 Aug 2001 21:02:17 -0700
In glibc-2.2.3 and 2.2.4pre2, if you try to build linuxthreads
on x86 without useldt.h by specifying an older kernel version (so that
FLOATING_STACK is not defined), __pthread_attr_setstacksize() and
__pthread_init_max_stacksize enforce a limit of STACK_SIZE (2MB)
maximum stacksize.
If the user wants to supply a stack larger than STACK_SIZE
and getrlimit() will allow the larger size, is there some
reason not to allow it when not including useldt.h on x86?
thanks,
Ken