This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: setrlimit()/C++ new() seg fault


othman@cs.wustl.edu writes:

|> Hi Wolfram,
|> 
|> Thank you very much for your response.
|> 
|> On 10 Nov, Wolfram Gloger wrote:
|>  > If you really want to prevent excessive memory allocation, the limit
|>  > to set is RLIMIT_AS, not RLIMIT_DATA (as the latter can be easily
|> 
|> I didn't know that RLIMIT_AS existed.  Is it portable?  It's not listed
|> or mentioned in Richard Stevens' book "Advanced Programming in the UNIX
|> Environment" so I assume that it is non-portable.  Correct?

RLIMIT_AS is part of SUS2, so it's resonably portable.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


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