From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27389 invoked by alias); 8 Oct 2002 04:43:03 -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 27372 invoked from network); 8 Oct 2002 04:43:01 -0000 Received: from unknown (HELO myware.akkadia.org) (24.221.190.179) by sources.redhat.com with SMTP; 8 Oct 2002 04:43:01 -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 g984gqqq002176; Mon, 7 Oct 2002 21:42:53 -0700 Message-ID: <3DA2624C.4040609@redhat.com> Date: Tue, 08 Oct 2002 00:21: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: Roland McGrath CC: Jakub Jelinek , Glibc hackers Subject: Re: [PATCH] __libc_alloca_cutoff (aka make mysql and others apps with very low RLIMIT_STACK setting happy) References: <200210080106.g9816rJ27102@magilla.sf.frob.com> 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/msg00037.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Roland McGrath wrote: > Conversely instead of a variable we could have a function that's given the > size and returns whether to use alloca or malloc. The variable should definitely not be exported. We should always only use functions. > The libc version can > just say to always use alloca, I don't care about supporting tiny > RLIMIT_STACK values for single-threaded programs. Sure. It always worked. > The libpthread version > can look at the thread's stack size vs the allocation, and perhaps even > look at the current stack depth. Yep. We have the stack size in the thread descriptor anyway so in fact we have the thread-local variable. > Then we don't have to diddle setrlimit > and all the rest, or add the word of TLS data setrlimit is out anyway. I'm not using it in nptl at all. - -- - --------------. ,-. 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 iD8DBQE9omJM2ijCOnn/RHQRAiidAJwMDY/gohRR4oUMdJmUDg9TzmcWhwCfVtYJ wJ9vAbZJfyii6TbCBU7uOE8= =OzH7 -----END PGP SIGNATURE-----