summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-09-10 16:39:41 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-09-10 16:39:41 +0000
commitbc1f4c8605eb0418d46665ac7ff7e98d88e051ca (patch)
tree64fe2ad8e77b78995e82eeffd28b94b3a523efd1 /pp_hot.c
parent5538b5808b062cabb0bf41698c02c8011317900e (diff)
downloadperl-bc1f4c8605eb0418d46665ac7ff7e98d88e051ca.tar.gz
Debugging output for lock handling.
p4raw-id: //depot/perl@64
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pp_hot.c b/pp_hot.c
index fce7437de7..334a60d0da 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1897,6 +1897,9 @@ PP(pp_entersub)
while (MgOWNER(mg))
COND_WAIT(MgOWNERCONDP(mg), MgMUTEXP(mg));
MgOWNER(mg) = thr;
+ DEBUG_L(PerlIO_printf(PerlIO_stderr(),
+ "0x%lx: pp_entersub lock 0x%lx\n",
+ (unsigned long)thr, (unsigned long)sv);)
MUTEX_UNLOCK(MgMUTEXP(mg));
save_destructor(unlock_condpair, sv);
}