smalloc: turn on the thread safe flag
authorJens Axboe <jens.axboe@oracle.com>
Tue, 27 May 2008 09:40:37 +0000 (11:40 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 27 May 2008 09:40:37 +0000 (11:40 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
smalloc.c

index 3af39f3636c59b79a32c6c9ff40deb7fe0b18253..cdc9ed858579c27e9421e5763767644565d517b3 100644 (file)
--- a/smalloc.c
+++ b/smalloc.c
@@ -13,7 +13,7 @@
 
 #include "mutex.h"
 
-#undef MP_SAFE                 /* define to make thread safe */
+#define MP_SAFE                        /* define to make thread safe */
 #define SMALLOC_REDZONE                /* define to detect memory corruption */
 
 #define SMALLOC_BPB    32      /* block size, bytes-per-bit in bitmap */