[PATCH] allow LinuxThreads to have larger stacks for the main thread
Ulrich Drepper
drepper@redhat.com
Thu Jun 26 07:38:00 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wolfram Gloger wrote:
> #define STACK_SIZE (2 * 1024 * 1024)
> #endif
>
> +/* The max size of the main thread's stack. Only used if
> + !FLOATING_STACKS and !_STACK_GROWS_UP. */
> +#ifndef MAIN_STACK_SIZE_MAX
> +#define MAIN_STACK_SIZE_MAX (64 * STACK_SIZE)
> +#endif
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.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE++qIY2ijCOnn/RHQRAgNcAJ0TwoUYqk8wIqqJ/hYIKZ3ZqhGZTwCgvnkz
bJZlAiOZZUhgNZsucgbnD3k=
=WKDJ
-----END PGP SIGNATURE-----
More information about the Libc-alpha
mailing list