summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-11-28 12:41:55 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-11-28 12:41:55 +0000
commit64f996d11396e48ec2347b5997a70034d1ca0a38 (patch)
tree22b43366afa5a98bcf987249d209f5ab406b97d4 /malloc.c
parent4bfbfac5c6d9a0ecc663cdd23fe31fc59ee7bab3 (diff)
downloadperl-64f996d11396e48ec2347b5997a70034d1ca0a38.tar.gz
fix MALLOC_LOCK #define
p4raw-id: //depot/perl@2341
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/malloc.c b/malloc.c
index ba4aac20e0..add79bb218 100644
--- a/malloc.c
+++ b/malloc.c
@@ -141,8 +141,8 @@
warn(format, arg) fprintf(stderr, idem)
# Locking/unlocking for MT operation
- MALLOC_LOCK MUTEX_LOCK(PL_malloc_mutex)
- MALLOC_UNLOCK MUTEX_UNLOCK(PL_malloc_mutex)
+ MALLOC_LOCK MUTEX_LOCK(&PL_malloc_mutex)
+ MALLOC_UNLOCK MUTEX_UNLOCK(&PL_malloc_mutex)
# Locking/unlocking mutex for MT operation
MUTEX_LOCK(l) void
@@ -278,11 +278,11 @@
#endif
#ifndef MALLOC_LOCK
-# define MALLOC_LOCK MUTEX_LOCK(PL_malloc_mutex)
+# define MALLOC_LOCK MUTEX_LOCK(&PL_malloc_mutex)
#endif
#ifndef MALLOC_UNLOCK
-# define MALLOC_UNLOCK MUTEX_UNLOCK(PL_malloc_mutex)
+# define MALLOC_UNLOCK MUTEX_UNLOCK(&PL_malloc_mutex)
#endif
#ifdef DEBUGGING