summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-07-05 22:51:50 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-08-09 19:44:13 -0700
commit1dc74fdba201402174cfbd293adc42f5a0bafc22 (patch)
treebf675ece5baae52ad8e311dd1b9de36514736c4c /scope.c
parent449dd03960bf018889fc68eb9ff03ef613eb893b (diff)
downloadperl-1dc74fdba201402174cfbd293adc42f5a0bafc22.tar.gz
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.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/scope.c b/scope.c
index abef454c44..4939441e25 100644
--- a/scope.c
+++ b/scope.c
@@ -1228,11 +1228,6 @@ Perl_leave_scope(pTHX_ I32 base)
case SAVEt_READONLY_OFF:
SvREADONLY_off(ARG0_SV);
break;
-#ifdef USE_ITHREADS
- case SAVEt_COPFILEFREE:
- CopFILE_free((COP *)ARG0_PTR);
- break;
-#endif
default:
Perl_croak(aTHX_ "panic: leave_scope inconsistency %u", type);
}