Skip to content
Browse files

Only call HvSHAREKEYS_off if threading is enabled.

This was causing bleadperl to loop.
  • Loading branch information...
1 parent b89471b commit b5327f339fcb1a49ca781151b9183e5719c33da7 @pjcj committed Dec 27, 2006
Showing with 4 additions and 0 deletions.
  1. +4 −0 Cover.xs
View
4 Cover.xs
@@ -629,12 +629,16 @@ static int runops_cover(pTHX)
if (!Pending_conditionals)
{
Pending_conditionals = newHV();
+#ifdef USE_ITHREADS
HvSHAREKEYS_off(Pending_conditionals);
+#endif
}
if (!Return_ops)
{
Return_ops = newHV();
+#ifdef USE_ITHREADS
HvSHAREKEYS_off(Return_ops);
+#endif
}
MUTEX_UNLOCK(&DC_mutex);

0 comments on commit b5327f3

Please sign in to comment.
Something went wrong with that request. Please try again.