From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2984 invoked by alias); 7 Oct 2002 23:20:05 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 2966 invoked from network); 7 Oct 2002 23:20:03 -0000 Received: from unknown (HELO myware.akkadia.org) (24.221.190.179) by sources.redhat.com with SMTP; 7 Oct 2002 23:20:03 -0000 Received: from redhat.com (myware.akkadia.org [192.168.7.70]) (authenticated bits=0) by myware.akkadia.org (8.12.5/8.12.5) with ESMTP id g97NJtqq032253; Mon, 7 Oct 2002 16:19:56 -0700 Message-ID: <3DA2169B.2070004@redhat.com> Date: Mon, 07 Oct 2002 18:06:00 -0000 From: Ulrich Drepper User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20020812 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakub Jelinek CC: Roland McGrath , Glibc hackers Subject: Re: [PATCH] __libc_alloca_cutoff (aka make mysql and others apps with very low RLIMIT_STACK setting happy) References: <20021008010912.K3451@sunsite.ms.mff.cuni.cz> X-Enigmail-Version: 0.65.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00035.txt.bz2 -----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-----