26#if !defined(AIPS_NO_LEA_MALLOC)
45#if defined(AIPS_LINUX)
53#if defined(AIPS_DEBUG)
101#define dlcalloc calloc
103#define dlmalloc malloc
104#define dlmemalign memalign
105#define dlrealloc realloc
106#define dlvalloc valloc
107#define dlpvalloc pvalloc
108#define dlmallinfo mallinfo
109#define dlmallopt mallopt
110#define dlmalloc_trim malloc_trim
111#define dlmalloc_stats malloc_stats
112#define dlmalloc_usable_size malloc_usable_size
113#define dlmalloc_footprint malloc_footprint
114#define dlindependent_calloc independent_calloc
115#define dlindependent_comalloc independent_comalloc
118#ifndef HAVE_USR_INCLUDE_MALLOC_H
120#ifndef MALLINFO_FIELD_TYPE
121#define MALLINFO_FIELD_TYPE size_t
123#ifndef STRUCT_MALLINFO_DECLARED
124#define STRUCT_MALLINFO_DECLARED 1
238#define M_TRIM_THRESHOLD (-1)
239#define M_GRANULARITY (-2)
240#define M_MMAP_THRESHOLD (-3)
void * mspace_realloc(mspace msp, void *mem, size_t newsize)
int mspace_trim(mspace msp, size_t pad)
#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
size_t destroy_mspace(mspace msp)
int mspace_mallopt(int, int)
#define dlmalloc_footprint
void * mspace_memalign(mspace msp, size_t alignment, size_t bytes)
mspace create_mspace_with_base(void *base, size_t capacity, int locked)
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
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)
void * mspace_calloc(mspace msp, size_t n_elements, size_t elem_size)
struct mallinfo mspace_mallinfo(mspace msp)
void * mspace_malloc(mspace msp, size_t bytes)
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