projects
/
gitmo/Class-MOP.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add a comment.
[gitmo/Class-MOP.git]
/
xs
/
Package.xs
diff --git
a/xs/Package.xs
b/xs/Package.xs
index
1086e21
..
06e93ed
100644
(file)
--- a/
xs/Package.xs
+++ b/
xs/Package.xs
@@
-346,6
+346,10
@@
CODE:
&& isGV(CvGV(subr))
&& strEQ(GvNAME(CvGV(subr)), "__ANON__")){
+ /* NOTE:
+ A gv "has-a" cv, but a cv refers to a gv as a (pseudo) weak ref.
+ so we can replace CvGV with no SvREFCNT_inc/dec.
+ */
CvGV(subr) = gv;
CvANON_off(subr);
}