From 6c9e42f72545c13a658eedd9d691686aeeea23f4 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 2 Jan 2007 14:55:29 +0000 Subject: [PATCH] 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 --- sv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sv.c b/sv.c index 6dd53b7..a98c70b 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. */ -- 2.7.4