This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] allow LinuxThreads to have larger stacks for the mainthread
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 26 Jun 2003 00:34:48 -0700
- Subject: Re: [PATCH] allow LinuxThreads to have larger stacks for the mainthread
- Organization: Red Hat, Inc.
- References: <200306251636.SAA14923@max.zk-i.med.uni-muenchen.de>
-----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-----