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)
568 size_t elem_size,
void* chunks[]);
575 size_t sizes[],
void* chunks[]);
int mspace_trim(mspace msp, size_t pad)
void * mspace_realloc(mspace msp, void *mem, size_t newsize)
#define dlindependent_calloc
size_t mspace_usable_size(void *mem)
void ** mspace_independent_comalloc(mspace msp, size_t n_elements, size_t sizes[], void *chunks[])
#define MALLINFO_FIELD_TYPE
void * mspace_malloc(mspace msp, size_t bytes)
size_t destroy_mspace(mspace msp)
int mspace_mallopt(int, int)
void * mspace_memalign(mspace msp, size_t alignment, size_t bytes)
#define dlmalloc_footprint
void ** mspace_independent_calloc(mspace msp, size_t n_elements, size_t elem_size, void *chunks[])
void * mspace_calloc(mspace msp, size_t n_elements, size_t elem_size)
mspace create_mspace_with_base(void *base, size_t capacity, int locked)
void mspace_malloc_stats(mspace msp)
#define dlindependent_comalloc
int mspace_track_large_chunks(mspace msp, int enable)
void mspace_free(mspace msp, void *mem)
#define dlmalloc_usable_size
size_t mspace_footprint(mspace msp)
mspace create_mspace(size_t capacity, int locked)
struct mallinfo mspace_mallinfo(mspace msp)
MALLINFO_FIELD_TYPE arena
MALLINFO_FIELD_TYPE fordblks
MALLINFO_FIELD_TYPE uordblks
MALLINFO_FIELD_TYPE usmblks
MALLINFO_FIELD_TYPE fsmblks
MALLINFO_FIELD_TYPE smblks
MALLINFO_FIELD_TYPE keepcost
MALLINFO_FIELD_TYPE hblks
MALLINFO_FIELD_TYPE hblkhd
MALLINFO_FIELD_TYPE ordblks