summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-01-02 14:55:29 +0000
committerNicholas Clark <nick@ccl4.org>2007-01-02 14:55:29 +0000
commit6c9e42f72545c13a658eedd9d691686aeeea23f4 (patch)
treeef3437793377804adb6cec5368afc3bdff785791 /sv.c
parent436dbe32e97ff6a3905b8692ef05f5dea9232e4b (diff)
downloadperl-6c9e42f72545c13a658eedd9d691686aeeea23f4.tar.gz
Note that the examples for the structure copying bug example are no
longer relevant because of the XPVGV re-ordering. p4raw-id: //depot/perl@29662
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 6dd53b7b89..a98c70b989 100644
--- a/sv.c
+++ b/sv.c
@@ -1178,7 +1178,9 @@ Perl_sv_upgrade(pTHX_ register SV *sv, svtype new_type)
(In fact, GP ends up pointing at a previous GP structure, because the
principle cause of the padding in XPVMG getting garbage is a copy of
- sizeof(XPVMG) bytes from a XPVGV structure in sv_unglob)
+ sizeof(XPVMG) bytes from a XPVGV structure in sv_unglob. Right now
+ this happens to be moot because XPVGV has been re-ordered, with GP
+ no longer after STASH)
So we are careful and work out the size of used parts of all the
structures. */