aboutsummaryrefslogtreecommitdiff
path: root/dep/jemalloc/src/test_hooks.c
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-05-05 17:19:10 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-03 22:02:24 +0100
commit8dd1f39153df736ad60fb07b50502bb5b03a23fc (patch)
tree87a99c0d1c89a5f05966ffbfb2c0a9b32a9c486f /dep/jemalloc/src/test_hooks.c
parenta855e6221d517297cfb9e2e78b57a6a57fccc85a (diff)
Dep/Jemalloc: Update to Jemalloc 5.2.0
(cherry picked from commit 5d986f0be46bf439caf227f3c228ac1c8efddfde)
Diffstat (limited to 'dep/jemalloc/src/test_hooks.c')
-rw-r--r--dep/jemalloc/src/test_hooks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/dep/jemalloc/src/test_hooks.c b/dep/jemalloc/src/test_hooks.c
new file mode 100644
index 00000000000..ace00d9c469
--- /dev/null
+++ b/dep/jemalloc/src/test_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 (*test_hooks_arena_new_hook)() = NULL;
+
+JEMALLOC_EXPORT
+void (*test_hooks_libc_hook)() = NULL;