This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Tidy the implementation of Perl_mg_dup().
authorNicholas Clark <nick@ccl4.org>
Mon, 18 May 2009 11:50:06 +0000 (12:50 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 18 May 2009 11:50:06 +0000 (12:50 +0100)
commit45f7fcc88f316d3cfef48062f141b1586354cfec
treed2ecd865fc79d2aabbf82545aa31ee73fb7af288
parent0228edf6a59a23f00e0f6eb4247cc4879f6bd150
Tidy the implementation of Perl_mg_dup().

As all the structure elements are directly assigned to, use Newx() rather than
Newxz(). Replace the explicit assignments with a direct structure copy. When
reading values from the parent, read from those copied to the new structure,
rather than the identical value in the old structure, to recduce CPU cache
pressure.
sv.c