Path to this page:
./
devel/p5-Test-Weaken,
Test that freed memory objects were, indeed, freed
Branch: pkgsrc-2012Q3,
Version: 3.020.000,
Package name: p5-Test-Weaken-3.020.000,
Maintainer: pkgsrc-usersTest::Weaken helps detect unfreed Perl data in arrays, hashes, scalars,
objects, etc, by descending recursively through structures and watching
that everything is freed. Unfreed data is a useless overhead and may
cause an application to abend due to lack of memory.
Normally if the last reference to something is discarded then it and
anything in it is freed automatically. But this might not occur due to
circular references, unexpected global variables or closures, or reference
counting mistakes in XSUBs.
Test::Weaken is named for the strategy used to detect leaks. References
are taken to the test objects and all their contents, then those
references are weakened and expected to be then freed.
There's options to ignore intentional globals, or include extra associated
data held elsewhere, or invoke an explicit destructor. Unfreed parts are
reported and can be passed to other modules such as Devel::FindRef to try
to discover why they weren't freed.
Test::Weaken examines structures to an unlimited depth and is safe on
circular structures.
Master sites: (Expand)
SHA1: b8a7cc66560fe009ebca59dc5c910384d197369d
RMD160: a0e69af72b772b1851f6b332adb1d74412ee567d
Filesize: 46.9 KB
Version history: (Expand)
- (2012-10-02) Package added to pkgsrc.se, version p5-Test-Weaken-3.020.000 (created)