Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • #p5p

    [16:49] <shadowpaste> "daxim" at pasted "recursion does not release memory for reuse?" (14 lines) at
    [16:49] <dipsy> [ magnet_web paste from "daxim" at ]
    [16:49] <daxim> what's going on here?
    [16:50] <Zefram> fragmentation?
    [16:50] <purl> fragmentation is interesting
    [16:50] <Nicholas> no, Pad frames created for recursion are not released
    [16:50] <Nicholas> the assumption is that you'll recurse again

    • perl -MTest::LeakTrace -le 'sub r {return if !$_[0]; r($_[0]-1); } r(1); leaktrace{ r(1);};'

      Hmm yes the second recursion calling is not leaking memory any more.