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


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

Re: apr-2001 libstdc++ outstanding


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


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