in reply to Gregorian Garbage Collection...

Anyone got any idea how I can force the GC to clean up my threads properly?
Send in patches!

I am only half kidding. Or maybe not at all. While there might be all kinds of problems with your code (or not, but there's nothing to inspect), Perl threads have all kinds of problems. Memory leaks belong to those. I do suggest you upgrade from 5.8.5 to 5.8.7. While it seems trivial, it's just two maintenance releases from 5.8.5 to 5.8.7, many of the changes between 5.8.5 and 5.8.7 have to do with threads.

And to answer your question, you cannot tickle the garbage collector from within Perl - other than reducing the reference count of your values to 0.

Perl --((8:>*

Replies are listed 'Best First'.
Re^2: Gregorian Garbage Collection...
by BrowserUk (Patriarch) on Oct 12, 2005 at 13:08 UTC
    Perl threads have all kinds of problems. Memory leaks belong to those... many of the changes between 5.8.5 and 5.8.7 have to do with threads

    Do you have some pointers?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
      I guess all the changes are in the Changes files coming with Perl. However, I based my remarks on Allison Randall's "State of the Carrot".
      Perl --((8:>*