28 #if !defined(AIPS_NO_LEA_MALLOC)
48 #if defined(AIPS_LINUX)
56 #if defined(AIPS_DEBUG)
95 #define ONLY_MSPACES 0
104 #ifndef USE_DL_PREFIX
105 #define dlcalloc calloc
107 #define dlmalloc malloc
108 #define dlmemalign memalign
109 #define dlrealloc realloc
110 #define dlvalloc valloc
111 #define dlpvalloc pvalloc
112 #define dlmallinfo mallinfo
113 #define dlmallopt mallopt
114 #define dlmalloc_trim malloc_trim
115 #define dlmalloc_stats malloc_stats
116 #define dlmalloc_usable_size malloc_usable_size
117 #define dlmalloc_footprint malloc_footprint
118 #define dlindependent_calloc independent_calloc
119 #define dlindependent_comalloc independent_comalloc
122 #ifndef HAVE_USR_INCLUDE_MALLOC_H
124 #ifndef MALLINFO_FIELD_TYPE
125 #define MALLINFO_FIELD_TYPE size_t
127 #ifndef STRUCT_MALLINFO_DECLARED
128 #define STRUCT_MALLINFO_DECLARED 1
242 #define M_TRIM_THRESHOLD (-1)
243 #define M_GRANULARITY (-2)
244 #define M_MMAP_THRESHOLD (-3)
555 void*
mspace_calloc(mspace msp,
size_t n_elements,
size_t elem_size);
568 size_t elem_size,
void* chunks[]);
575 size_t sizes[],
void* chunks[]);
size_t mspace_usable_size(void *mem)
mspace create_mspace_with_base(void *base, size_t capacity, int locked)
int mspace_trim(mspace msp, size_t pad)
MALLINFO_FIELD_TYPE arena
int mspace_mallopt(int, int)
MALLINFO_FIELD_TYPE hblks
size_t mspace_footprint(mspace msp)
#define dlmalloc_footprint
mspace create_mspace(size_t capacity, int locked)
MALLINFO_FIELD_TYPE ordblks
int mspace_track_large_chunks(mspace msp, int enable)
#define dlmalloc_usable_size
void * mspace_malloc(mspace msp, size_t bytes)
#define MALLINFO_FIELD_TYPE
void ** mspace_independent_comalloc(mspace msp, size_t n_elements, size_t sizes[], void *chunks[])
MALLINFO_FIELD_TYPE fordblks
struct mallinfo mspace_mallinfo(mspace msp)
MALLINFO_FIELD_TYPE fsmblks
#define dlindependent_calloc
MALLINFO_FIELD_TYPE keepcost
MALLINFO_FIELD_TYPE hblkhd
void mspace_free(mspace msp, void *mem)
void * mspace_calloc(mspace msp, size_t n_elements, size_t elem_size)
size_t destroy_mspace(mspace msp)
void ** mspace_independent_calloc(mspace msp, size_t n_elements, size_t elem_size, void *chunks[])
void mspace_malloc_stats(mspace msp)
#define dlindependent_comalloc
void * mspace_realloc(mspace msp, void *mem, size_t newsize)
MALLINFO_FIELD_TYPE uordblks
MALLINFO_FIELD_TYPE smblks
MALLINFO_FIELD_TYPE usmblks
void * mspace_memalign(mspace msp, size_t alignment, size_t bytes)