[PATCH] allow LinuxThreads to have larger stacks for the mainthread

Wolfram Gloger wmglo@dent.med.uni-muenchen.de
Thu Jun 26 18:23:00 GMT 2003


> This is not usable.  Many architectures severely limit the stack size.
> On x86 there is a hard limit of 8MB.  The remaining 120MB would be
> unused, or worse, used for other mappings.

Ok, can someone explain to me that hard limit of 8MB on x86?  I wasn't
aware of it at all.  Is this built into LinuxThreads in some other
place, or is it a kernel limitation?  I am aware that many
distributions set the default stack limit to 8MB (and I think that is
good).

The patch could of course also be applied with MAIN_STACK_SIZE_MAX set
to 8MB, a fourfold improvement over the current situation.

Regards,
Wolfram.



More information about the Libc-alpha mailing list