diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-02 14:55:29 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-02 14:55:29 +0000 |
commit | 6c9e42f72545c13a658eedd9d691686aeeea23f4 (patch) | |
tree | ef3437793377804adb6cec5368afc3bdff785791 /sv.c | |
parent | 436dbe32e97ff6a3905b8692ef05f5dea9232e4b (diff) | |
download | perl-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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. */ |