bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting RLIMIT_STACK


From: Paul Smith
Subject: Re: Setting RLIMIT_STACK
Date: Sat, 17 Jul 2010 01:42:40 -0400

On Sat, 2010-07-17 at 02:22 -0300, Alberto Bertogli wrote:
> So I was wondering what was the reason for that rlimit, and if perhaps
> it could be avoided to prevent this behaviour change.

It was added a number of years ago by Paul Eggert, because make makes
extensive use of alloca() and some larger, more complex makefiles might
run into problems.

Probably there should be an effort to switch to heap for anything that
might get large and reserve alloca() usage just for things we know for a
fact will not get too large, but that hasn't been done.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]