develooper Front page | perl.perl5.porters | Postings from April 2003

Re: 5.8.1@19053: threads goofs ][

Thread Previous | Thread Next
Arthur Bergman
April 1, 2003 11:29
Re: 5.8.1@19053: threads goofs ][
Message ID:

On måndag, mar 31, 2003, at 23:37 Europe/Stockholm, Ilya Zakharevich 

> threads leaks 7 4-byte buckets and 5 12-byte buckets per
> created/joined thread.  Easy to see comparing the results of
>   env PERL_DEBUG_MSTATS=2 perl -Mthreads -Mthreads::shared -we "for 
> (1.. 2){my @t; push @t, threads->new(sub{}) for 1..25; $_->join for 
> @t}"
> with

I tried for(1..10000) and I didn't see any leak at all.
While there are leaks in threads::shared, I know of no leaks in 
threads.xs, perhaps if there is a platform specific in 
perl_alloc/conctruct/destruct/free that gets triggered.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About