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:>*

In reply to Re: Gregorian Garbage Collection... by Perl Mouse
in thread Gregorian Garbage Collection... by edwar64896

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.