mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 16:47:21 +03:00
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.
This commit is contained in:
parent
730e57b08f
commit
741fca1bb7
4 changed files with 12 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue