Click here to get back home

Thread::Semaphore consumes memory

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Thread::Semaphore consumes memory Bernd 01-07-2005
Posted by Bernd on January 7, 2005, 11:05 pm
Please log in for more thread options
Hi,

multiple lock-down and lock-up sequences causes a memory leak. Trying
this (in perl 5.8.3):

use threads;
use Thread::Semaphore;
my $lock = new Thread::Semaphore;
while (1) {
$lock->down;
$lock->up;
}

But this problem only occurs with the leading "use threads".

Any idea about this?

Bernd


Similar ThreadsPosted
Out of Memory error September 12, 2004, 11:51 pm
CPAN shell says "Out of memory!" December 30, 2005, 5:15 pm
Shared memory for data structures September 8, 2004, 11:13 am
Leaking memory in Perl XS Module November 8, 2004, 10:40 am
Memory Leak in Math::Pari December 16, 2004, 6:21 am
Thread module October 1, 2004, 7:34 pm
threads, XSUB allocated memory, destructors, destruction September 30, 2005, 6:31 pm
DBD::Unify on AIX : error -59 unable to attach to shared memory. July 8, 2006, 11:24 pm
PPM sybperl not intended for MS2-x86-multi-thread October 11, 2004, 12:11 pm
problem with ppm - looking for MSWin320-x86-multi-thread-5.8 May 18, 2005, 4:41 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap