Port details on branch 2022Q3 |
- p5-Test-Refcount Assert reference counts on objects
- 0.10 devel =0 0.10Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2011-11-28 09:18:58
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Test-Refcount
- Description:
- The Perl garbage collector uses simple reference counting during the normal
execution of a program. This means that cycles or unweakened references in other
parts of code can keep an object around for longer than intended. To help avoid
this problem, the reference count of a new object from its class constructor
ought to be 1. This way, the caller can know the object will be properly
DESTROYed when it drops all of its references to it.
Test::Refcount provides two test functions to help ensure this property holds
for an object class, so as to be polite to its callers.
If the assertion fails; that is, if the actual reference count is different to
what was expected, a trace of references to the object can be printed, if Marc
Lehmann's Devel::FindRef module is installed. This may assist the developer in
finding where the references are.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Test-Refcount>0:devel/p5-Test-Refcount
- To install the port:
- cd /usr/ports/devel/p5-Test-Refcount/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/p5-Test-Refcount
- pkg install p5-Test-Refcount
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Test-Refcount
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1561722426
SHA256 (Test-Refcount-0.10.tar.gz) = 0457c20a4956473d157c4faaff8814154bc93f6e2b543c2812a19ff8e3370eb2
SIZE (Test-Refcount-0.10.tar.gz) = 17218
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Devel-MAT>=0 : devel/p5-Devel-MAT
- perl5>=5.32.r0<5.33 : lang/perl5.32
- p5-Module-Build>=0.4206 : devel/p5-Module-Build
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Devel-MAT>=0 : devel/p5-Devel-MAT
- perl5>=5.32.r0<5.33 : lang/perl5.32
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_p5-Test-Refcount
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|