summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-17 13:39:27 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-17 16:45:22 -0700
commit84eea98055f218b655619db1600f75f511c33e3d (patch)
treea45dc42539e9e4e118275119b3df57491c00c5ac /pad.c
parentfe79b1b662bc3e34b73e5b207dbf472afbc1b3ac (diff)
downloadperl-84eea98055f218b655619db1600f75f511c33e3d.tar.gz
pad.c: Document pad_add_anon’s refcounting
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pad.c b/pad.c
index 6dee52ee6a..331922aef0 100644
--- a/pad.c
+++ b/pad.c
@@ -784,6 +784,8 @@ currently-compiling function.
The function I<func> is linked into the pad, and its C<CvOUTSIDE> link
to the outer scope is weakened to avoid a reference loop.
+One reference count is stolen, so you may need to do C<SvREFCNT_inc(func)>.
+
I<optype> should be an opcode indicating the type of operation that the
pad entry is to support. This doesn't affect operational semantics,
but is used for debugging.