This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.c: Don’t copy shared hash key targets when cloning
authorFather Chrysostomos <sprout@cpan.org>
Wed, 3 Jul 2013 01:25:48 +0000 (18:25 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Jul 2013 06:48:02 +0000 (23:48 -0700)
commitc902d85e7652ab578dceefc793d634241321e990
treee44dce312fc74303cb8b597cb352051e90a8f127
parent5d7191988b7898f8bbf2cb7fe55bcad6416c3e9c
pad.c: Don’t copy shared hash key targets when cloning

When creating a new thread, don’t treat shared hash key targets as
constants.  (See the previous commit for explanation.)

This should cause no change in behaviour, because the new target will
not be in use, and its next use will immediately overwrite its value.
It just saves having to copy a string that will be overwritten.
pad.c