aboutsummaryrefslogtreecommitdiff
path: root/dep/jemalloc/src/hooks.c
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2017-11-19 20:23:00 +0100
committerfunjoker <funjoker109@gmail.com>2021-02-15 19:13:25 +0100
commit65f4666063ebd8207bf09f528797467c5a30fd9d (patch)
tree2b185a42d33043079f46510e19fbcea1f017eb3b /dep/jemalloc/src/hooks.c
parent55c63d7d833eb2b1cc08adb92725f2435108f7d2 (diff)
Dep/Jemalloc: Update to Jemalloc 5.0.1
(cherry picked from commit 92cd9bd70db460fdce4af0596cf9d8ee3c3abad5)
Diffstat (limited to 'dep/jemalloc/src/hooks.c')
-rw-r--r--dep/jemalloc/src/hooks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/dep/jemalloc/src/hooks.c b/dep/jemalloc/src/hooks.c
new file mode 100644
index 00000000000..6266ecd47fe
--- /dev/null
+++ b/dep/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;