|
|
| P is for Practical | |
| PerlMonks |
Re: bug in threads::shared or is it just me?by ikegami (Patriarch) |
| on Apr 05, 2012 at 20:58 UTC ( [id://963738]=note: print w/replies, xml ) | Need Help?? |
|
I consider this a bug, and I suspect it's caused by the lack of refcounting of stuff on the stack. This ticket tracks such issues. Why is that variable shared anyway? It's a sub's variable, so what does that even mean? Furthermore, there's absolutely no reason for that hash to be shared since you return its contents to the parent instead of having the parent access the shared hash. Get rid of needless, weirdly placed :shared and the bug is moot.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||