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]
Other format: [Raw text]

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


-----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-----


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