linuxthreads: why limit stack size to STACK_SIZE when not using FLOATING_STACK ?
Ken Whaley
ken@believe.com
Tue Aug 7 20:57:00 GMT 2001
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
More information about the Libc-alpha
mailing list