summaryrefslogtreecommitdiff
path: root/deps/jemalloc/src/hooks.c
diff options
context:
space:
mode:
authorYehonal <yehonal.azeroth@gmail.com>2017-12-21 11:29:24 +0100
committerYehonal <yehonal.azeroth@gmail.com>2017-12-21 11:29:24 +0100
commit8f7bc1c749b9eb2995d4894a98ff4c7f25957f62 (patch)
treef0243851bdbcbe94af2f10f75cdd71a34f423239 /deps/jemalloc/src/hooks.c
parent403ed2600f39c1105b6641086808a6cdafbca1c5 (diff)
Moved files after merging
Diffstat (limited to 'deps/jemalloc/src/hooks.c')
-rw-r--r--deps/jemalloc/src/hooks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/jemalloc/src/hooks.c b/deps/jemalloc/src/hooks.c
new file mode 100644
index 0000000000..6266ecd47f
--- /dev/null
+++ b/deps/jemalloc/src/hooks.c
@@ -0,0 +1,12 @@
+#include "jemalloc/internal/jemalloc_preamble.h"
+
+/*
+ * The hooks are a little bit screwy -- they're not genuinely exported in the
+ * sense that we want them available to end-users, but we do want them visible
+ * from outside the generated library, so that we can use them in test code.
+ */
+JEMALLOC_EXPORT
+void (*hooks_arena_new_hook)() = NULL;
+
+JEMALLOC_EXPORT
+void (*hooks_libc_hook)() = NULL;