apr-2001 libstdc++ outstanding

Loren James Rittle rittle@latour.rsch.comm.mot.com
Tue May 8 15:48:00 GMT 2001


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



More information about the Libstdc++ mailing list