develooper Front page | perl.perl5.porters | Postings from September 2010

Memory leak with threads

From:
Dr.Ruud
Date:
September 17, 2010 22:59
Subject:
Memory leak with threads
Message ID:
20100917104423.31568.qmail@lists-nntp.develooper.com
See Message-ID: 
<9d726d7e-82ff-405f-91a5-e74d93ab56f9@k9g2000vbo.googlegroups.com>

On 5.8.5. I don't see this leak.


Test code by Xho:

for ( my $i = 0 ; $i < 150000 ; $i++ )
{
         my $thread = threads->create('thread_function');
         $thread -> join();
         if ( $i % 1000 == 0 )
         {
                 printf ( "%010i\t%3\$s" , $i, `ps -p $$ -o rss` );
         }
}

-- 
Ruud



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About