menth0l has asked for the wisdom of the Perl Monks concerning the following question:
It's my first post here... so hello ;)
I have a big problem with memory leaks when using Object::InsideOut with threads::shared (ActiveState Perl 5.10.1, threads::shared 1.34, Object::InsideOut 3.69). Consider this code:
On my machine it constantly grows :/ One would assume that each created object will be destroyed (which is actually happening: :Init and :Destroy methods get to be called) and memory reused (which does not happen!). Interesting thing about that is when i comment out "use threads::shared" line it works fine. Memory usage is constant. The same is true when i implement package Test with classic hash-based class: no memory leaks. It's very important for me to solve this without abandoning OIO as 99% of my app is based on it. So: is it a bug in OIO? Or maybe in threads::shared? Will be gratefull for any help..package Test; use threads; use threads::shared; { use Object::InsideOut; my @dummy :Field; } package main; while (1) { my $o = new Test; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Object::InsideOut leaks memory when using threads::shared
by BrowserUk (Patriarch) on Oct 13, 2010 at 15:07 UTC | |
by menth0l (Monk) on Oct 13, 2010 at 15:49 UTC | |
by BrowserUk (Patriarch) on Oct 13, 2010 at 16:18 UTC | |
Re: Object::InsideOut leaks memory when using threads::shared
by zentara (Archbishop) on Oct 13, 2010 at 18:10 UTC | |
by menth0l (Monk) on Oct 13, 2010 at 21:17 UTC | |
by BrowserUk (Patriarch) on Oct 13, 2010 at 21:39 UTC |
Back to
Seekers of Perl Wisdom