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

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] __libc_alloca_cutoff (aka make mysql and others appswith very low RLIMIT_STACK setting happy)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> --- libc/include/alloca.h.jj	2002-09-30 16:45:04.000000000 +0200
> +++ libc/include/alloca.h	2002-10-08 00:12:01.000000000 +0200
> @@ -11,4 +11,16 @@ extern void *__alloca (size_t __size);
>  # define __alloca(size)	__builtin_alloca (size)
>  #endif /* GCC.  */
>  
> +extern size_t __libc_alloca_cutoff;
> +libc_hidden_proto (__libc_alloca_cutoff)

We should have this variable per-thread (use __thread).  Tis way a few
worker threads using very small stack do not affect to whole process.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9ohab2ijCOnn/RHQRAnG+AKCOmM3rdHa+1Q2TxeRHC4wOQfR9cQCdHVoy
zx1jQytduWhMy1HB9GC3MCE=
=7Sy3
-----END PGP SIGNATURE-----


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