Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-B-COW (devel/p5-B-COW) import p5-B-COW-0.004



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47d88e3990da
branches:  trunk
changeset: 429954:47d88e3990da
user:      mef <mef%pkgsrc.org@localhost>
date:      Sun Apr 26 13:31:28 2020 +0000

description:
(devel/p5-B-COW) import p5-B-COW-0.004

B::COW provides some naive additional B helpers to check the COW
status of one SvPV.  COW or Copy On Write introduction

A COWed SvPV is sharing its string (the PV) with other SvPVs. It's a
(kind of) Read Only C string, that would be Copied On Write (COW).

More than one SV can share the same PV, but when one PV need to alter
it, it would perform a copy of it, decrease the COWREFCNT counter.

One SV can then drop the COW flag when it's the only one holding a
pointer to the PV.

The COWREFCNT is stored at the end of the PV, after the the "\0".

That value is limited to 255, when we reach 255, a new PV would be
created,

diffstat:

 devel/p5-B-COW/DESCR    |  16 ++++++++++++++++
 devel/p5-B-COW/Makefile |  16 ++++++++++++++++
 devel/p5-B-COW/PLIST    |   4 ++++
 devel/p5-B-COW/distinfo |   6 ++++++
 4 files changed, 42 insertions(+), 0 deletions(-)

diffs (58 lines):

diff -r 5198de458338 -r 47d88e3990da devel/p5-B-COW/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-B-COW/DESCR      Sun Apr 26 13:31:28 2020 +0000
@@ -0,0 +1,16 @@
+B::COW provides some naive additional B helpers to check the COW
+status of one SvPV.  COW or Copy On Write introduction
+
+A COWed SvPV is sharing its string (the PV) with other SvPVs. It's a
+(kind of) Read Only C string, that would be Copied On Write (COW).
+
+More than one SV can share the same PV, but when one PV need to alter
+it, it would perform a copy of it, decrease the COWREFCNT counter.
+
+One SV can then drop the COW flag when it's the only one holding a
+pointer to the PV.
+
+The COWREFCNT is stored at the end of the PV, after the the "\0".
+
+That value is limited to 255, when we reach 255, a new PV would be
+created,
diff -r 5198de458338 -r 47d88e3990da devel/p5-B-COW/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-B-COW/Makefile   Sun Apr 26 13:31:28 2020 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2020/04/26 13:31:28 mef Exp $
+
+DISTNAME=      B-COW-0.004
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/
+COMMENT=       Some naive additional B helpers to check the COW status of one SvPV
+LICENSE=       ${PERL5_LICENSE}
+
+PERL5_PACKLIST=        auto/B/COW/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5198de458338 -r 47d88e3990da devel/p5-B-COW/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-B-COW/PLIST      Sun Apr 26 13:31:28 2020 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2020/04/26 13:31:28 mef Exp $
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff -r 5198de458338 -r 47d88e3990da devel/p5-B-COW/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-B-COW/distinfo   Sun Apr 26 13:31:28 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/04/26 13:31:28 mef Exp $
+
+SHA1 (B-COW-0.004.tar.gz) = acfcd1214e39e980dcd24e33059255b8e92099b8
+RMD160 (B-COW-0.004.tar.gz) = 7e923587e6217bde4d63e41d746ca39612827349
+SHA512 (B-COW-0.004.tar.gz) = 97beaac8056e4aaeafb535a8e69f103632eb3746fa815313f84612414081155ab640299c18b4cb7b9ff0f61263cc1b9ce25de3313bbefce318163902a4503292
+Size (B-COW-0.004.tar.gz) = 18295 bytes



Home | Main Index | Thread Index | Old Index