This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: apr-2001 libstdc++ outstanding
- To: bkoz at redhat dot com
- Subject: Re: apr-2001 libstdc++ outstanding
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Tue, 8 May 2001 17:47:58 -0500 (CDT)
- CC: libstdc++ at gcc dot gnu dot org
- References: <Pine.SOL.3.91.1010508102821.3593E-100000@taarna.cygnus.com>
- Reply-to: rittle at rsch dot comm dot mot dot com
In article <Pine.SOL.3.91.1010508102821.3593E-100000@taarna.cygnus.com>,
Benjamin Kosnik <bkoz@redhat.com> writes:
>> The latter program ran for about two and a half minutes. I killed the
>> former program after twenty minutes. Each program uses 736 kB for SIZE
>> and 736 kB for RSS during the whole run. There is no increase in the
>> memory usage.
> huh.
> Anybody else? Am I the only one that can reproduce this?
I can confirm that this program (from libstdc++/2517):
#include <string>
using namespace std;
int main()
{
string s1="hi",s2;
while(true)
s2=s1+" there.";
return(0);
}
runs fine without a detectable memory leak on i386-unknown-freebsd4.2
when compiled with mainline gcc built last night with -O0, -O, -O2,
and -O2 -pthread.
Regards,
Loren