summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2018-07-11 21:39:44 +0200
committerJason Evans <jasone@canonware.com>2018-10-17 07:12:28 -0700
commit741fca1bb7773e14cf929824b94506eb9f545e5e (patch)
tree6bbf038f7e305ced2e291d3a650a629aa6e78301 /test
parent730e57b08fe5bd6bdc38ca4ff6a73959984d8ef0 (diff)
Hide smallocx even when enabled from the library API
The experimental `smallocx` API is not exposed via header files, requiring the users to peek at `jemalloc`'s source code to manually add the external declarations to their own programs. This should reinforce that `smallocx` is experimental, and that `jemalloc` does not offer any kind of backwards compatiblity or ABI gurantees for it.
Diffstat (limited to 'test')
-rw-r--r--test/integration/smallocx.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/smallocx.c b/test/integration/smallocx.c
index 376fec25..f49ec845 100644
--- a/test/integration/smallocx.c
+++ b/test/integration/smallocx.c
@@ -1,5 +1,12 @@
#include "test/jemalloc_test.h"
+typedef struct {
+ void *ptr;
+ size_t size;
+} smallocx_return_t;
+
+extern smallocx_return_t smallocx(size_t size, int flags);
+
static unsigned
get_nsizes_impl(const char *cmd) {
unsigned ret;