diff options
-rw-r--r-- | op.c | 3 | ||||
-rw-r--r-- | toke.c | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -3532,7 +3532,8 @@ newSUB(I32 floor, OP *o, OP *proto, OP *block) CvSTASH(cv) = curstash; #ifdef USE_THREADS CvOWNER(cv) = 0; - New(666, CvMUTEXP(cv), 1, perl_mutex); + if (!CvMUTEXP(cv)) + New(666, CvMUTEXP(cv), 1, perl_mutex); MUTEX_INIT(CvMUTEXP(cv)); #endif /* USE_THREADS */ @@ -5967,9 +5967,6 @@ start_subparse(I32 is_format, U32 flags) av_store(comppad_name, 0, newSVpv("@_", 2)); curpad[0] = (SV*)newAV(); SvPADMY_on(curpad[0]); /* XXX Needed? */ - CvOWNER(compcv) = 0; - New(666, CvMUTEXP(compcv), 1, perl_mutex); - MUTEX_INIT(CvMUTEXP(compcv)); #endif /* USE_THREADS */ comppadlist = newAV(); |