summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-07-19 21:34:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-07-19 21:34:05 +0000
commit6e89fa1521e43089c5fc8ad7041ab22f5f3113f1 (patch)
treec3076897a411f94fe977a28bec475239e69a48f0 /pp_hot.c
parentc52248be1b93675f97446e26d9a2d2ce15151bcd (diff)
downloadperl-6e89fa1521e43089c5fc8ad7041ab22f5f3113f1.tar.gz
Band-aid for segfault in ext/threads/t/blocks.t on SMP machines
p4raw-id: //depot/perl@28601
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index 7a83ee7040..546d93c22e 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2909,7 +2909,8 @@ try_autoload:
PL_curcopdb = NULL;
}
/* Do we need to open block here? XXXX */
- (void)(*CvXSUB(cv))(aTHX_ cv);
+ if (CvXSUB(cv)) /* XXX this is supposed to be true */
+ (void)(*CvXSUB(cv))(aTHX_ cv);
/* Enforce some sanity in scalar context. */
if (gimme == G_SCALAR && ++markix != PL_stack_sp - PL_stack_base ) {