37 #define ONLY_MSPACES 0
47 #define dlcalloc mycalloc
49 #define dlmalloc mymalloc
50 #define dlmemalign mymemalign
51 #define dlrealloc myrealloc
52 #define dlvalloc myvalloc
53 #define dlpvalloc mypvalloc
54 #define dlmallinfo mymallinfo
55 #define dlmallopt mymallopt
56 #define dlmalloc_trim mymalloc_trim
57 #define dlmalloc_stats mymalloc_stats
58 #define dlmalloc_usable_size mymalloc_usable_size
59 #define dlmalloc_footprint mymalloc_footprint
60 #define dlindependent_calloc myindependent_calloc
61 #define dlindependent_comalloc myindependent_comalloc
64 #ifndef HAVE_USR_INCLUDE_MALLOC_H
66 #ifndef MALLINFO_FIELD_TYPE
67 #define MALLINFO_FIELD_TYPE size_t
69 #ifndef STRUCT_MALLINFO_DECLARED
70 #define STRUCT_MALLINFO_DECLARED 1
184 #define M_TRIM_THRESHOLD (-1)
185 #define M_GRANULARITY (-2)
186 #define M_MMAP_THRESHOLD (-3)
497 void*
mspace_calloc(mspace msp,
size_t n_elements,
size_t elem_size);
510 size_t elem_size,
void* chunks[]);
517 size_t sizes[],
void* chunks[]);
#define dlmalloc_footprint
void ** mspace_independent_comalloc(mspace msp, size_t n_elements, size_t sizes[], void *chunks[])
MALLINFO_FIELD_TYPE arena
MALLINFO_FIELD_TYPE hblks
void mspace_malloc_stats(mspace msp)
void * mspace_malloc(mspace msp, size_t bytes)
typedef void(XMLCALL *XML_ElementDeclHandler)(void *userData
MALLINFO_FIELD_TYPE ordblks
mspace create_mspace_with_base(void *base, size_t capacity, int locked)
size_t mspace_footprint(mspace msp)
#define MALLINFO_FIELD_TYPE
#define dlmalloc_usable_size
struct mallinfo mspace_mallinfo(mspace msp)
MALLINFO_FIELD_TYPE fordblks
void * mspace_realloc(mspace msp, void *mem, size_t newsize)
void * mspace_memalign(mspace msp, size_t alignment, size_t bytes)
int mspace_mallopt(int, int)
MALLINFO_FIELD_TYPE fsmblks
#define dlindependent_comalloc
MALLINFO_FIELD_TYPE keepcost
const XML_Char int const XML_Char int const XML_Char * base
void ** mspace_independent_calloc(mspace msp, size_t n_elements, size_t elem_size, void *chunks[])
mspace create_mspace(size_t capacity, int locked)
MALLINFO_FIELD_TYPE hblkhd
#define dlindependent_calloc
void * mspace_calloc(mspace msp, size_t n_elements, size_t elem_size)
void mspace_free(mspace msp, void *mem)
int mspace_trim(mspace msp, size_t pad)
int mspace_track_large_chunks(mspace msp, int enable)
size_t destroy_mspace(mspace msp)
MALLINFO_FIELD_TYPE uordblks
size_t mspace_usable_size(void *mem)
MALLINFO_FIELD_TYPE smblks
MALLINFO_FIELD_TYPE usmblks