incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: STD_BAD_ALLOC.cpp test problem on Windows
Date Thu, 07 Jun 2007 15:32:11 GMT
Farid Zaripov wrote:
>> -----Original Message-----
>> From: Martin Sebor [mailto:sebor@roguewave.com] 
>> Sent: Wednesday, June 06, 2007 9:45 PM
>> To: stdcxx-dev@incubator.apache.org
>> Subject: Re: STD_BAD_ALLOC.cpp test problem on Windows
>>
>> Still, are you aware of any Windows API that lets programs 
>> limit the amount of dynamic memory available to them, like
>> setrusage() does on UNIX? I ask because allocating so much 
>> storage can put a big stress on the system, even if for just 
>> a few seconds.
> 
>   The process memory (and/or user-mode time) can be limited using
> job object, but this possibility available on Windows 2000 and later
> (not available on Windows NT).

That's better than nothing. Would it be pretty easy to do in
the test?

Martin

Mime
View raw message