1
This commit is contained in:
1 parent
40c63f60ef
commit
daba3b96a0
2 files changed
+29
-2
No files matched your search
@@ -17,7 +17,7 @@
|
||||
#define LOCATION_MAX (METADATA_SIZE - POINTER_SIZE)
|
||||
#define NEXT_OFFSET LOCATION_MAX
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
#include <execinfo.h>
|
||||
#include <pthread.h>
|
||||
#define BACKTRACE_ENABLED 1
|
||||
@@ -29,7 +29,7 @@
|
||||
#define BACKTRACE_ENABLED 0
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(__APPLE__)
|
||||
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
|
||||
static pthread_mutex_t alloc_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
#define LOCK() pthread_mutex_lock(&alloc_mutex)
|
||||
#define UNLOCK() pthread_mutex_unlock(&alloc_mutex)
|
||||
|
||||
Reference in new issue
Block a user