This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

linuxthreads: why limit stack size to STACK_SIZE when not using FLOATING_STACK ?


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






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]