[PATCH] __libc_alloca_cutoff (aka make mysql and others apps with very low RLIMIT_STACK setting happy)

Ulrich Drepper drepper@redhat.com
Mon Oct 7 18:06:00 GMT 2002


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



More information about the Libc-hacker mailing list