summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-02-29 18:37:27 (GMT)
committerJason Evans <je@fb.com>2012-02-29 18:37:27 (GMT)
commit4bb09830133ffa8b27a95bc3727558007722c152 (patch)
tree12c17283304c231e3cced2acae24f5ad8271f29c /include
parent5965631636c620fba2eb33698accee75fd207aab (diff)
downloadjemalloc-4bb09830133ffa8b27a95bc3727558007722c152.zip
jemalloc-4bb09830133ffa8b27a95bc3727558007722c152.tar.gz
jemalloc-4bb09830133ffa8b27a95bc3727558007722c152.tar.bz2
Use glibc allocator hooks.
When jemalloc is used as a libc malloc replacement (i.e. not prefixed), some particular setups may end up inconsistently calling malloc from libc and free from jemalloc, or the other way around. glibc provides hooks to make its functions use alternative implementations. Use them. Submitted by Karl Tomlinson and Mike Hommey.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/jemalloc_internal.h.in4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in
index 35c05f4..c21c218 100644
--- a/include/jemalloc/internal/jemalloc_internal.h.in
+++ b/include/jemalloc/internal/jemalloc_internal.h.in
@@ -144,10 +144,6 @@ static const bool config_ivsalloc =
#include <malloc/malloc.h>
#endif
-#ifdef JEMALLOC_LAZY_LOCK
-#include <dlfcn.h>
-#endif
-
#define RB_COMPACT
#include "jemalloc/internal/rb.h"
#include "jemalloc/internal/qr.h"