This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revert "[perl #117855] Store CopFILEGV in a pad under ithreads"
authorFather Chrysostomos <sprout@cpan.org>
Sat, 6 Jul 2013 05:51:50 +0000 (22:51 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 10 Aug 2013 02:44:13 +0000 (19:44 -0700)
commit1dc74fdba201402174cfbd293adc42f5a0bafc22
treebf675ece5baae52ad8e311dd1b9de36514736c4c
parent449dd03960bf018889fc68eb9ff03ef613eb893b
Revert "[perl #117855] Store CopFILEGV in a pad under ithreads"

This reverts commit c82ecf346.

It turn out to be faulty, because a location shared betweens threads
(the cop) was holding a reference count on a pad entry in a particu-
lar thread.  So when you free the cop, how do you know where to do
SvREFCNT_dec?

In reverting c82ecf346, this commit still preserves the bug fix from
1311cfc0a7b, but shifts it around.
19 files changed:
MANIFEST
cop.h
embed.fnc
embed.h
embedvar.h
ext/B/B.pm
ext/B/B.xs
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/copstash.t [moved from ext/XS-APItest/t/cop.t with 78% similarity]
gv.c
inline.h
intrpvar.h
makedef.pl
op.c
perl.c
proto.h
scope.c
scope.h
sv.c