Geant4_10
Classes | Macros | Typedefs | Functions
mymalloc.h File Reference
#include <stddef.h>
Include dependency graph for mymalloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mallinfo
 

Macros

#define MSPACES   1
 
#define ONLY_MSPACES   0 /* define to a value */
 
#define NO_MALLINFO   0
 
#define dlcalloc   mycalloc
 
#define dlfree   myfree
 
#define dlmalloc   mymalloc
 
#define dlmemalign   mymemalign
 
#define dlrealloc   myrealloc
 
#define dlvalloc   myvalloc
 
#define dlpvalloc   mypvalloc
 
#define dlmallinfo   mymallinfo
 
#define dlmallopt   mymallopt
 
#define dlmalloc_trim   mymalloc_trim
 
#define dlmalloc_stats   mymalloc_stats
 
#define dlmalloc_usable_size   mymalloc_usable_size
 
#define dlmalloc_footprint   mymalloc_footprint
 
#define dlindependent_calloc   myindependent_calloc
 
#define dlindependent_comalloc   myindependent_comalloc
 
#define MALLINFO_FIELD_TYPE   size_t
 
#define STRUCT_MALLINFO_DECLARED   1
 
#define M_TRIM_THRESHOLD   (-1)
 
#define M_GRANULARITY   (-2)
 
#define M_MMAP_THRESHOLD   (-3)
 

Typedefs

typedef voidmspace
 

Functions

voiddlmalloc (size_t)
 
void dlfree (void *)
 
voiddlcalloc (size_t, size_t)
 
voiddlrealloc (void *, size_t)
 
voiddlmemalign (size_t, size_t)
 
voiddlvalloc (size_t)
 
int dlmallopt (int, int)
 
size_t dlmalloc_footprint ()
 
struct mallinfo dlmallinfo (void)
 
void ** dlindependent_calloc (size_t, size_t, void **)
 
void ** dlindependent_comalloc (size_t, size_t *, void **)
 
voiddlpvalloc (size_t)
 
int dlmalloc_trim (size_t)
 
void dlmalloc_stats ()
 
size_t dlmalloc_usable_size (void *)
 
mspace create_mspace (size_t capacity, int locked)
 
size_t destroy_mspace (mspace msp)
 
mspace create_mspace_with_base (void *base, size_t capacity, int locked)
 
int mspace_track_large_chunks (mspace msp, int enable)
 
voidmspace_malloc (mspace msp, size_t bytes)
 
void mspace_free (mspace msp, void *mem)
 
voidmspace_realloc (mspace msp, void *mem, size_t newsize)
 
voidmspace_calloc (mspace msp, size_t n_elements, size_t elem_size)
 
voidmspace_memalign (mspace msp, size_t alignment, size_t bytes)
 
void ** mspace_independent_calloc (mspace msp, size_t n_elements, size_t elem_size, void *chunks[])
 
void ** mspace_independent_comalloc (mspace msp, size_t n_elements, size_t sizes[], void *chunks[])
 
size_t mspace_footprint (mspace msp)
 
struct mallinfo mspace_mallinfo (mspace msp)
 
size_t mspace_usable_size (void *mem)
 
void mspace_malloc_stats (mspace msp)
 
int mspace_trim (mspace msp, size_t pad)
 
int mspace_mallopt (int, int)
 

Macro Definition Documentation

#define dlcalloc   mycalloc

Definition at line 47 of file mymalloc.h.

#define dlfree   myfree

Definition at line 48 of file mymalloc.h.

#define dlindependent_calloc   myindependent_calloc

Definition at line 60 of file mymalloc.h.

#define dlindependent_comalloc   myindependent_comalloc

Definition at line 61 of file mymalloc.h.

#define dlmallinfo   mymallinfo

Definition at line 54 of file mymalloc.h.

#define dlmalloc   mymalloc

Definition at line 49 of file mymalloc.h.

#define dlmalloc_footprint   mymalloc_footprint

Definition at line 59 of file mymalloc.h.

void dlmalloc_stats   mymalloc_stats

Definition at line 57 of file mymalloc.h.

#define dlmalloc_trim   mymalloc_trim

Definition at line 56 of file mymalloc.h.

#define dlmalloc_usable_size   mymalloc_usable_size

Definition at line 58 of file mymalloc.h.

#define dlmallopt   mymallopt

Definition at line 55 of file mymalloc.h.

#define dlmemalign   mymemalign

Definition at line 50 of file mymalloc.h.

#define dlpvalloc   mypvalloc

Definition at line 53 of file mymalloc.h.

#define dlrealloc   myrealloc

Definition at line 51 of file mymalloc.h.

#define dlvalloc   myvalloc

Definition at line 52 of file mymalloc.h.

#define M_GRANULARITY   (-2)

Definition at line 185 of file mymalloc.h.

#define M_MMAP_THRESHOLD   (-3)

Definition at line 186 of file mymalloc.h.

#define M_TRIM_THRESHOLD   (-1)

Definition at line 184 of file mymalloc.h.

#define MALLINFO_FIELD_TYPE   size_t

Definition at line 67 of file mymalloc.h.

#define MSPACES   1

Definition at line 28 of file mymalloc.h.

#define NO_MALLINFO   0

Definition at line 40 of file mymalloc.h.

#define ONLY_MSPACES   0 /* define to a value */

Definition at line 37 of file mymalloc.h.

#define STRUCT_MALLINFO_DECLARED   1

Definition at line 70 of file mymalloc.h.

Typedef Documentation

typedef void* mspace

Definition at line 419 of file mymalloc.h.

Function Documentation

mspace create_mspace ( size_t  capacity,
int  locked 
)

Definition at line 4974 of file mymalloc.cc.

Here is the caller graph for this function:

mspace create_mspace_with_base ( void base,
size_t  capacity,
int  locked 
)

Definition at line 5005 of file mymalloc.cc.

size_t destroy_mspace ( mspace  msp)

Definition at line 5034 of file mymalloc.cc.

void * dlcalloc ( size_t  n_elements,
size_t  elem_size 
)

Definition at line 4837 of file mymalloc.cc.

void dlfree ( void mem)

Definition at line 4728 of file mymalloc.cc.

void** dlindependent_calloc ( size_t  ,
size_t  ,
void **   
)
void** dlindependent_comalloc ( size_t  ,
size_t *  ,
void **   
)
struct mallinfo dlmallinfo ( void  )

Definition at line 4923 of file mymalloc.cc.

void * dlmalloc ( size_t  bytes)

Definition at line 4592 of file mymalloc.cc.

size_t dlmalloc_footprint ( void  )

Definition at line 4914 of file mymalloc.cc.

void dlmalloc_stats ( )
int dlmalloc_trim ( size_t  pad)

Definition at line 4904 of file mymalloc.cc.

size_t dlmalloc_usable_size ( void mem)

Definition at line 4938 of file mymalloc.cc.

int dlmallopt ( int  param_number,
int  value 
)

Definition at line 4932 of file mymalloc.cc.

void * dlmemalign ( size_t  alignment,
size_t  bytes 
)

Definition at line 4875 of file mymalloc.cc.

void * dlpvalloc ( size_t  bytes)

Definition at line 4897 of file mymalloc.cc.

void * dlrealloc ( void oldmem,
size_t  bytes 
)

Definition at line 4852 of file mymalloc.cc.

void * dlvalloc ( size_t  bytes)

Definition at line 4890 of file mymalloc.cc.

void * mspace_calloc ( mspace  msp,
size_t  n_elements,
size_t  elem_size 
)

Definition at line 5276 of file mymalloc.cc.

Here is the caller graph for this function:

size_t mspace_footprint ( mspace  msp)

Definition at line 5375 of file mymalloc.cc.

void mspace_free ( mspace  msp,
void mem 
)

Definition at line 5175 of file mymalloc.cc.

Here is the caller graph for this function:

void ** mspace_independent_calloc ( mspace  msp,
size_t  n_elements,
size_t  elem_size,
void chunks[] 
)

Definition at line 5329 of file mymalloc.cc.

void ** mspace_independent_comalloc ( mspace  msp,
size_t  n_elements,
size_t  sizes[],
void chunks[] 
)

Definition at line 5340 of file mymalloc.cc.

struct mallinfo mspace_mallinfo ( mspace  msp)

Definition at line 5402 of file mymalloc.cc.

void * mspace_malloc ( mspace  msp,
size_t  bytes 
)

Definition at line 5061 of file mymalloc.cc.

Here is the caller graph for this function:

void mspace_malloc_stats ( mspace  msp)

Definition at line 5365 of file mymalloc.cc.

int mspace_mallopt ( int  param_number,
int  value 
)

Definition at line 5420 of file mymalloc.cc.

void * mspace_memalign ( mspace  msp,
size_t  alignment,
size_t  bytes 
)

Definition at line 5320 of file mymalloc.cc.

void * mspace_realloc ( mspace  msp,
void mem,
size_t  newsize 
)

Definition at line 5296 of file mymalloc.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

int mspace_track_large_chunks ( mspace  msp,
int  enable 
)

Definition at line 5019 of file mymalloc.cc.

int mspace_trim ( mspace  msp,
size_t  pad 
)

Definition at line 5350 of file mymalloc.cc.

size_t mspace_usable_size ( void mem)

Definition at line 5411 of file mymalloc.cc.