This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
85396b1
)
SvGROW should un-cow under PERL_OLD_COPY_ON_WRITE
author
Father Chrysostomos
<sprout@cpan.org>
Thu, 2 Jan 2014 20:39:05 +0000
(12:39 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Fri, 17 Jan 2014 01:58:47 +0000
(17:58 -0800)
Otherwise pp_uc (and presumably other pieces of code) will end up mod-
ifying shared buffers.
Brought to you by PERL_DEBUG_READONLY_COW.
sv.h
patch
|
blob
|
blame
|
history
diff --git
a/sv.h
b/sv.h
index
e0e903c
..
42dfe6f
100644
(file)
--- a/
sv.h
+++ b/
sv.h
@@
-2138,7
+2138,7
@@
See also C<PL_sv_yes> and C<PL_sv_no>.
== (SVt_PVLV|SVf_FAKE))
== (SVt_PVLV|SVf_FAKE))
-#ifdef PERL_
NEW_COPY_ON_WRITE
+#ifdef PERL_
ANY_COW
# define SvGROW(sv,len) \
(SvIsCOW(sv) || SvLEN(sv) < (len) ? sv_grow(sv,len) : SvPVX(sv))
#else
# define SvGROW(sv,len) \
(SvIsCOW(sv) || SvLEN(sv) < (len) ? sv_grow(sv,len) : SvPVX(sv))
#else