PPL Logo

conv-core/memory-gnu-internal.C File Reference

Go to the source code of this file.

Data Structures

struct  mallinfo
struct  pthread_mlock_t
struct  win32_mlock_t
struct  pthread_mlock_t
struct  malloc_chunk
struct  malloc_tree_chunk
struct  malloc_segment
struct  malloc_state
struct  malloc_params

Typedefs

typedef void * mspace
typedef struct malloc_chunk mchunk
typedef struct malloc_chunkmchunkptr
typedef struct malloc_chunksbinptr
typedef unsigned int bindex_t
typedef unsigned int binmap_t
typedef unsigned int flag_t
typedef struct malloc_tree_chunk tchunk
typedef struct malloc_tree_chunktchunkptr
typedef struct malloc_tree_chunktbinptr
typedef struct malloc_segment msegment
typedef struct malloc_segmentmsegmentptr
typedef struct malloc_statemstate

Functions

void * dlmalloc (size_t)
void dlfree (void *)
void * dlcalloc (size_t, size_t)
void * dlrealloc (void *, size_t)
void * dlmemalign (size_t, size_t)
void * dlvalloc (size_t)
int dlmallopt (int, int)
size_t dlmalloc_footprint (void)
size_t dlmalloc_max_footprint (void)
struct mallinfo dlmallinfo (void)
void ** dlindependent_calloc (size_t, size_t, void **)
void ** dlindependent_comalloc (size_t, size_t *, void **)
void * dlpvalloc (size_t)
int dlmalloc_trim (size_t)
size_t dlmalloc_usable_size (void *)
void dlmalloc_stats (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)
void * mspace_malloc (mspace msp, size_t bytes)
void mspace_free (mspace msp, void *mem)
void * mspace_realloc (mspace msp, void *mem, size_t newsize)
void * mspace_calloc (mspace msp, size_t n_elements, size_t elem_size)
void * mspace_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)
size_t mspace_max_footprint (mspace msp)
struct mallinfo mspace_mallinfo (mspace msp)
void mspace_malloc_stats (mspace msp)
int mspace_trim (mspace msp, size_t pad)
int mspace_mallopt (int, int)
void * sbrk (ptrdiff_t)
LONG __cdecl _InterlockedCompareExchange (LPLONG volatile Dest, LONG Exchange, LONG Comp)
LONG __cdecl _InterlockedExchange (LPLONG volatile Target, LONG Value)
unsigned char _BitScanForward (unsigned long *index, unsigned long mask)
unsigned char _BitScanReverse (unsigned long *index, unsigned long mask)
size_t getpagesize ()
static FORCEINLINE void * win32mmap (size_t size)
static FORCEINLINE void * win32direct_mmap (size_t size)
static FORCEINLINE int win32munmap (void *ptr, size_t size)
void * mremap (void *old_address, size_t old_size, size_t new_size, int flags,...)
static FORCEINLINE int pthread_acquire_lock (MLOCK_T *sl)
static FORCEINLINE void pthread_release_lock (MLOCK_T *sl)
static FORCEINLINE int pthread_try_lock (MLOCK_T *sl)
static FORCEINLINE int win32_acquire_lock (MLOCK_T *sl)
static FORCEINLINE void win32_release_lock (MLOCK_T *sl)
static FORCEINLINE int win32_try_lock (MLOCK_T *sl)
static FORCEINLINE int pthread_init_lock (MLOCK_T *sl)
static FORCEINLINE int pthread_islocked (MLOCK_T *sl)
static msegmentptr segment_holding (mstate m, char *addr)
static int has_segment_link (mstate m, msegmentptr ss)
static void reset_on_error (mstate m)
static void do_check_any_chunk (mstate m, mchunkptr p)
static void do_check_top_chunk (mstate m, mchunkptr p)
static void do_check_mmapped_chunk (mstate m, mchunkptr p)
static void do_check_inuse_chunk (mstate m, mchunkptr p)
static void do_check_free_chunk (mstate m, mchunkptr p)
static void do_check_malloced_chunk (mstate m, void *mem, size_t s)
static void do_check_tree (mstate m, tchunkptr t)
static void do_check_treebin (mstate m, bindex_t i)
static void do_check_smallbin (mstate m, bindex_t i)
static void do_check_malloc_state (mstate m)
static int bin_find (mstate m, mchunkptr x)
static size_t traverse_and_check (mstate m)
static int init_mparams (void)
static int change_mparam (int param_number, int value)
static struct mallinfo internal_mallinfo (mstate m)
static void internal_malloc_stats (mstate m)
static void * mmap_alloc (mstate m, size_t nb)
static mchunkptr mmap_resize (mstate m, mchunkptr oldp, size_t nb)
static void init_top (mstate m, mchunkptr p, size_t psize)
static void init_bins (mstate m)
static void * prepend_alloc (mstate m, char *newbase, char *oldbase, size_t nb)
static void add_segment (mstate m, char *tbase, size_t tsize, flag_t mmapped)
static void * sys_alloc (mstate m, size_t nb)
static size_t release_unused_segments (mstate m)
static int sys_trim (mstate m, size_t pad)
static void * tmalloc_large (mstate m, size_t nb)
static void * tmalloc_small (mstate m, size_t nb)
static void * internal_realloc (mstate m, void *oldmem, size_t bytes)
static void * internal_memalign (mstate m, size_t alignment, size_t bytes)
static void ** ialloc (mstate m, size_t n_elements, size_t *sizes, int opts, void *chunks[])
void ** dlindependent_calloc (size_t n_elements, size_t elem_size, void *chunks[])
void ** dlindependent_comalloc (size_t n_elements, size_t sizes[], void *chunks[])
static mstate init_user_mstate (char *tbase, size_t tsize)
size_t mspace_usable_size (void *mem)

Variables

static int dev_zero_fd = -1
static MLOCK_T magic_init_mutex = {0, 0, 0 }
static MLOCK_T morecore_mutex = {0, 0, 0 }
static struct malloc_params mparams
static struct malloc_state _gm_
int malloc_corruption_error_count


Typedef Documentation

typedef void* mspace

Definition at line 1092 of file memory-gnu-internal.C.

typedef struct malloc_chunk mchunk

Definition at line 1949 of file memory-gnu-internal.C.

typedef struct malloc_chunk* mchunkptr

Definition at line 1950 of file memory-gnu-internal.C.

typedef struct malloc_chunk* sbinptr

Definition at line 1951 of file memory-gnu-internal.C.

typedef unsigned int bindex_t

Definition at line 1952 of file memory-gnu-internal.C.

typedef unsigned int binmap_t

Definition at line 1953 of file memory-gnu-internal.C.

typedef unsigned int flag_t

Definition at line 1954 of file memory-gnu-internal.C.

typedef struct malloc_tree_chunk tchunk

Definition at line 2164 of file memory-gnu-internal.C.

typedef struct malloc_tree_chunk* tchunkptr

Definition at line 2165 of file memory-gnu-internal.C.

typedef struct malloc_tree_chunk* tbinptr

Definition at line 2166 of file memory-gnu-internal.C.

typedef struct malloc_segment msegment

Definition at line 2238 of file memory-gnu-internal.C.

typedef struct malloc_segment* msegmentptr

Definition at line 2239 of file memory-gnu-internal.C.

typedef struct malloc_state* mstate

Definition at line 2359 of file memory-gnu-internal.C.


Function Documentation

void * dlmalloc ( size_t  bytes  ) 

Definition at line 4433 of file memory-gnu-internal.C.

References assert, PUP::b, malloc_chunk::fd, malloc_chunk::head, idx, p, r, sys_alloc(), tmalloc_large(), and tmalloc_small().

Referenced by dlcalloc(), and dlrealloc().

Here is the call graph for this function:

Here is the caller graph for this function:

void dlfree ( void *  mem  ) 

Definition at line 4565 of file memory-gnu-internal.C.

References malloc_state::dv, malloc_state::dvsize, malloc_state::footprint, malloc_chunk::head, p, malloc_chunk::prev_foot, malloc_state::release_checks, release_unused_segments(), sys_trim(), malloc_state::top, and malloc_state::topsize.

Referenced by dlrealloc().

Here is the call graph for this function:

Here is the caller graph for this function:

void * dlcalloc ( size_t  n_elements,
size_t  elem_size 
)

Definition at line 4675 of file memory-gnu-internal.C.

References dlmalloc().

Here is the call graph for this function:

void * dlrealloc ( void *  oldmem,
size_t  bytes 
)

Definition at line 4690 of file memory-gnu-internal.C.

References dlfree(), dlmalloc(), internal_realloc(), and PUP::m.

Here is the call graph for this function:

void * dlmemalign ( size_t  alignment,
size_t  bytes 
)

Definition at line 4713 of file memory-gnu-internal.C.

References internal_memalign().

Referenced by dlpvalloc(), and dlvalloc().

Here is the call graph for this function:

Here is the caller graph for this function:

void * dlvalloc ( size_t  bytes  ) 

Definition at line 4728 of file memory-gnu-internal.C.

References dlmemalign(), init_mparams(), mparams, and malloc_params::page_size.

Here is the call graph for this function:

int dlmallopt ( int  param_number,
int  value 
)

Definition at line 4778 of file memory-gnu-internal.C.

References change_mparam().

Here is the call graph for this function:

size_t dlmalloc_footprint ( void   ) 

Definition at line 4751 of file memory-gnu-internal.C.

size_t dlmalloc_max_footprint ( void   ) 

Definition at line 4755 of file memory-gnu-internal.C.

struct mallinfo dlmallinfo ( void   )  [read]

Definition at line 4760 of file memory-gnu-internal.C.

References internal_mallinfo().

Here is the call graph for this function:

void** dlindependent_calloc ( size_t  ,
size_t  ,
void **   
)

void** dlindependent_comalloc ( size_t  ,
size_t ,
void **   
)

void * dlpvalloc ( size_t  bytes  ) 

Definition at line 4735 of file memory-gnu-internal.C.

References dlmemalign(), init_mparams(), mparams, and malloc_params::page_size.

Here is the call graph for this function:

int dlmalloc_trim ( size_t  pad  ) 

Definition at line 4742 of file memory-gnu-internal.C.

References sys_trim().

Here is the call graph for this function:

size_t dlmalloc_usable_size ( void *  mem  ) 

Definition at line 4769 of file memory-gnu-internal.C.

References p.

void dlmalloc_stats ( void   ) 

Definition at line 4765 of file memory-gnu-internal.C.

References internal_malloc_stats().

Here is the call graph for this function:

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 
)

Definition at line 4830 of file memory-gnu-internal.C.

References init_mparams(), init_user_mstate(), PUP::m, mparams, malloc_params::page_size, malloc_state::seg, and malloc_segment::sflags.

Referenced by alignas().

Here is the call graph for this function:

Here is the caller graph for this function:

void * mspace_malloc ( mspace  msp,
size_t  bytes 
)

Definition at line 4871 of file memory-gnu-internal.C.

References assert, PUP::b, malloc_state::dv, malloc_state::dvsize, malloc_chunk::fd, malloc_chunk::head, idx, p, r, malloc_state::smallmap, sys_alloc(), tmalloc_large(), tmalloc_small(), malloc_state::top, malloc_state::topsize, and malloc_state::treemap.

Referenced by alignas(), and mspace_realloc().

Here is the call graph for this function:

Here is the caller graph for this function:

void mspace_free ( mspace  msp,
void *  mem 
)

Definition at line 4985 of file memory-gnu-internal.C.

References malloc_state::dv, malloc_state::dvsize, malloc_state::footprint, malloc_chunk::head, p, malloc_chunk::prev_foot, malloc_state::release_checks, release_unused_segments(), sys_trim(), malloc_state::top, and malloc_state::topsize.

Referenced by alignas(), and mspace_realloc().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 5106 of file memory-gnu-internal.C.

References internal_realloc(), mspace_free(), mspace_malloc(), and p.

Referenced by alignas().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 5086 of file memory-gnu-internal.C.

Referenced by alignas().

Here is the caller graph for this function:

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

Definition at line 5130 of file memory-gnu-internal.C.

References internal_memalign().

Referenced by alignas().

Here is the call graph for this function:

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 5139 of file memory-gnu-internal.C.

References ialloc().

Referenced by alignas().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 5150 of file memory-gnu-internal.C.

References ialloc().

Referenced by alignas().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t mspace_footprint ( mspace  msp  ) 

Definition at line 5185 of file memory-gnu-internal.C.

References malloc_state::footprint.

size_t mspace_max_footprint ( mspace  msp  ) 

Definition at line 5198 of file memory-gnu-internal.C.

References malloc_state::max_footprint.

struct mallinfo mspace_mallinfo ( mspace  msp  )  [read]

Definition at line 5212 of file memory-gnu-internal.C.

References internal_mallinfo().

Here is the call graph for this function:

void mspace_malloc_stats ( mspace  msp  ) 

Definition at line 5175 of file memory-gnu-internal.C.

References internal_malloc_stats().

Referenced by alignas().

Here is the call graph for this function:

Here is the caller graph for this function:

int mspace_trim ( mspace  msp,
size_t  pad 
)

Definition at line 5160 of file memory-gnu-internal.C.

References sys_trim().

Referenced by alignas().

Here is the call graph for this function:

Here is the caller graph for this function:

int mspace_mallopt ( int  param_number,
int  value 
)

Definition at line 5230 of file memory-gnu-internal.C.

References change_mparam().

Referenced by alignas().

Here is the call graph for this function:

Here is the caller graph for this function:

void* sbrk ( ptrdiff_t   ) 

Referenced by MemusageSbrk().

Here is the caller graph for this function:

LONG __cdecl _InterlockedCompareExchange ( LPLONG volatile  Dest,
LONG  Exchange,
LONG  Comp 
)

LONG __cdecl _InterlockedExchange ( LPLONG volatile  Target,
LONG  Value 
)

unsigned char _BitScanForward ( unsigned long *  index,
unsigned long  mask 
)

Referenced by LZ4_NbCommonBytes().

Here is the caller graph for this function:

unsigned char _BitScanReverse ( unsigned long *  index,
unsigned long  mask 
)

Referenced by LZ4_NbCommonBytes().

Here is the caller graph for this function:

size_t getpagesize (  ) 

Referenced by CmiSendMessageXpmem().

Here is the caller graph for this function:

static FORCEINLINE void* win32mmap ( size_t  size  )  [static]

Definition at line 1457 of file memory-gnu-internal.C.

static FORCEINLINE void* win32direct_mmap ( size_t  size  )  [static]

Definition at line 1463 of file memory-gnu-internal.C.

static FORCEINLINE int win32munmap ( void *  ptr,
size_t  size 
) [static]

Definition at line 1470 of file memory-gnu-internal.C.

void* mremap ( void *  old_address,
size_t  old_size,
size_t  new_size,
int  flags,
  ... 
)

static FORCEINLINE int pthread_acquire_lock ( MLOCK_T *  sl  )  [static]

Definition at line 1557 of file memory-gnu-internal.C.

References assert.

static FORCEINLINE void pthread_release_lock ( MLOCK_T *  sl  )  [static]

Definition at line 1588 of file memory-gnu-internal.C.

References assert.

static FORCEINLINE int pthread_try_lock ( MLOCK_T *  sl  )  [static]

Definition at line 1597 of file memory-gnu-internal.C.

References assert.

Referenced by pthread_islocked().

Here is the caller graph for this function:

static FORCEINLINE int win32_acquire_lock ( MLOCK_T *  sl  )  [static]

Definition at line 1631 of file memory-gnu-internal.C.

References assert.

static FORCEINLINE void win32_release_lock ( MLOCK_T *  sl  )  [static]

Definition at line 1651 of file memory-gnu-internal.C.

References assert.

static FORCEINLINE int win32_try_lock ( MLOCK_T *  sl  )  [static]

Definition at line 1659 of file memory-gnu-internal.C.

References assert.

static FORCEINLINE int pthread_init_lock ( MLOCK_T *  sl  )  [static]

Definition at line 1713 of file memory-gnu-internal.C.

References attr.

static FORCEINLINE int pthread_islocked ( MLOCK_T *  sl  )  [static]

Definition at line 1723 of file memory-gnu-internal.C.

References pthread_try_lock().

Here is the call graph for this function:

static msegmentptr segment_holding ( mstate  m,
char *  addr 
) [static]

Definition at line 2438 of file memory-gnu-internal.C.

References malloc_segment::base, malloc_segment::next, malloc_state::seg, and malloc_segment::size.

Referenced by add_segment(), do_check_top_chunk(), sys_alloc(), and sys_trim().

Here is the caller graph for this function:

static int has_segment_link ( mstate  m,
msegmentptr  ss 
) [static]

Definition at line 2449 of file memory-gnu-internal.C.

References malloc_segment::base, malloc_segment::next, malloc_state::seg, and malloc_segment::size.

Referenced by sys_trim().

Here is the caller graph for this function:

static void reset_on_error ( mstate  m  )  [static]

static void do_check_any_chunk ( mstate  m,
mchunkptr  p 
) [static]

Definition at line 2918 of file memory-gnu-internal.C.

References assert, and malloc_chunk::head.

Referenced by do_check_free_chunk(), do_check_inuse_chunk(), do_check_malloc_state(), and do_check_tree().

Here is the caller graph for this function:

static void do_check_top_chunk ( mstate  m,
mchunkptr  p 
) [static]

Definition at line 2924 of file memory-gnu-internal.C.

References assert, malloc_segment::base, segment_holding(), malloc_segment::size, and malloc_state::topsize.

Referenced by do_check_malloc_state().

Here is the call graph for this function:

Here is the caller graph for this function:

static void do_check_mmapped_chunk ( mstate  m,
mchunkptr  p 
) [static]

Definition at line 2938 of file memory-gnu-internal.C.

References assert, malloc_chunk::head, len, mparams, malloc_params::page_size, and malloc_chunk::prev_foot.

Referenced by do_check_inuse_chunk().

Here is the caller graph for this function:

static void do_check_inuse_chunk ( mstate  m,
mchunkptr  p 
) [static]

Definition at line 2952 of file memory-gnu-internal.C.

References assert, do_check_any_chunk(), and do_check_mmapped_chunk().

Referenced by do_check_malloced_chunk(), do_check_smallbin(), and traverse_and_check().

Here is the call graph for this function:

Here is the caller graph for this function:

static void do_check_free_chunk ( mstate  m,
mchunkptr  p 
) [static]

Definition at line 2963 of file memory-gnu-internal.C.

References assert, malloc_chunk::bk, do_check_any_chunk(), malloc_state::dv, malloc_chunk::fd, malloc_chunk::prev_foot, and malloc_state::top.

Referenced by do_check_smallbin(), and traverse_and_check().

Here is the call graph for this function:

Here is the caller graph for this function:

static void do_check_malloced_chunk ( mstate  m,
void *  mem,
size_t  s 
) [static]

Definition at line 2986 of file memory-gnu-internal.C.

References assert, do_check_inuse_chunk(), malloc_chunk::head, and p.

Here is the call graph for this function:

static void do_check_tree ( mstate  m,
tchunkptr  t 
) [static]

Definition at line 3000 of file memory-gnu-internal.C.

References assert, malloc_chunk::bk, do_check_any_chunk(), malloc_chunk::fd, idx, malloc_tree_chunk::index, and PUP::u.

Referenced by do_check_treebin().

Here is the call graph for this function:

Here is the caller graph for this function:

static void do_check_treebin ( mstate  m,
bindex_t  i 
) [static]

Definition at line 3051 of file memory-gnu-internal.C.

References assert, do_check_tree(), PUP::t, and malloc_state::treemap.

Referenced by do_check_malloc_state().

Here is the call graph for this function:

Here is the caller graph for this function:

static void do_check_smallbin ( mstate  m,
bindex_t  i 
) [static]

Definition at line 3062 of file memory-gnu-internal.C.

References assert, PUP::b, malloc_chunk::bk, do_check_free_chunk(), do_check_inuse_chunk(), malloc_chunk::head, p, size, and malloc_state::smallmap.

Referenced by do_check_malloc_state().

Here is the call graph for this function:

Here is the caller graph for this function:

static void do_check_malloc_state ( mstate  m  )  [static]

static int bin_find ( mstate  m,
mchunkptr  x 
) [static]

Definition at line 3086 of file memory-gnu-internal.C.

References PUP::b, malloc_tree_chunk::child, malloc_tree_chunk::fd, malloc_chunk::fd, p, size, PUP::t, and PUP::u.

Referenced by do_check_malloc_state(), and traverse_and_check().

Here is the caller graph for this function:

static size_t traverse_and_check ( mstate  m  )  [static]

Definition at line 3122 of file memory-gnu-internal.C.

References assert, malloc_segment::base, bin_find(), do_check_free_chunk(), do_check_inuse_chunk(), malloc_state::dv, malloc_chunk::head, malloc_segment::next, PUP::s, malloc_state::seg, malloc_state::top, and malloc_state::topsize.

Referenced by do_check_malloc_state().

Here is the call graph for this function:

Here is the caller graph for this function:

static int init_mparams ( void   )  [static]

static int change_mparam ( int  param_number,
int  value 
) [static]

Definition at line 2892 of file memory-gnu-internal.C.

References malloc_params::granularity, init_mparams(), malloc_params::mmap_threshold, mparams, malloc_params::page_size, size_t, and malloc_params::trim_threshold.

Referenced by dlmallopt(), and mspace_mallopt().

Here is the call graph for this function:

Here is the caller graph for this function:

static struct mallinfo internal_mallinfo ( mstate  m  )  [static, read]

static void internal_malloc_stats ( mstate  m  )  [static]

static void* mmap_alloc ( mstate  m,
size_t  nb 
) [static]

Definition at line 3517 of file memory-gnu-internal.C.

References assert, malloc_state::footprint, malloc_state::least_addr, malloc_state::max_footprint, offset, p, and malloc_chunk::prev_foot.

Referenced by sys_alloc().

Here is the caller graph for this function:

static mchunkptr mmap_resize ( mstate  m,
mchunkptr  oldp,
size_t  nb 
) [static]

static void init_top ( mstate  m,
mchunkptr  p,
size_t  psize 
) [static]

static void init_bins ( mstate  m  )  [static]

Definition at line 3595 of file memory-gnu-internal.C.

References malloc_chunk::bk, and malloc_chunk::fd.

Referenced by init_user_mstate(), reset_on_error(), and sys_alloc().

Here is the caller graph for this function:

static void* prepend_alloc ( mstate  m,
char *  newbase,
char *  oldbase,
size_t  nb 
) [static]

Definition at line 3624 of file memory-gnu-internal.C.

References assert, malloc_state::dv, malloc_state::dvsize, malloc_chunk::head, p, malloc_state::top, and malloc_state::topsize.

Referenced by sys_alloc().

Here is the caller graph for this function:

static void add_segment ( mstate  m,
char *  tbase,
size_t  tsize,
flag_t  mmapped 
) [static]

Definition at line 3666 of file memory-gnu-internal.C.

References assert, malloc_segment::base, malloc_chunk::head, init_top(), malloc_segment::next, offset, p, malloc_state::seg, segment_holding(), malloc_segment::sflags, malloc_segment::size, and malloc_state::top.

Referenced by sys_alloc().

Here is the call graph for this function:

Here is the caller graph for this function:

static void* sys_alloc ( mstate  m,
size_t  nb 
) [static]

static size_t release_unused_segments ( mstate  m  )  [static]

static int sys_trim ( mstate  m,
size_t  pad 
) [static]

static void* tmalloc_large ( mstate  m,
size_t  nb 
) [static]

Definition at line 4031 of file memory-gnu-internal.C.

References assert, malloc_tree_chunk::child, malloc_state::dvsize, idx, r, PUP::t, and malloc_state::treemap.

Referenced by dlmalloc(), and mspace_malloc().

Here is the caller graph for this function:

static void* tmalloc_small ( mstate  m,
size_t  nb 
) [static]

Definition at line 4104 of file memory-gnu-internal.C.

References assert, r, PUP::t, and malloc_state::treemap.

Referenced by dlmalloc(), and mspace_malloc().

Here is the caller graph for this function:

static void* internal_realloc ( mstate  m,
void *  oldmem,
size_t  bytes 
) [static]

Definition at line 4144 of file memory-gnu-internal.C.

References malloc_chunk::head, mmap_resize(), malloc_state::top, and malloc_state::topsize.

Referenced by dlrealloc(), and mspace_realloc().

Here is the call graph for this function:

Here is the caller graph for this function:

static void* internal_memalign ( mstate  m,
size_t  alignment,
size_t  bytes 
) [static]

Definition at line 4215 of file memory-gnu-internal.C.

References PUP::a, assert, malloc_chunk::head, p, malloc_chunk::prev_foot, size, and size_t.

Referenced by dlmemalign(), and mspace_memalign().

Here is the caller graph for this function:

static void** ialloc ( mstate  m,
size_t  n_elements,
size_t sizes,
int  opts,
void *  chunks[] 
) [static]

Definition at line 4302 of file memory-gnu-internal.C.

References assert, p, and size.

Referenced by dlindependent_calloc(), dlindependent_comalloc(), mspace_independent_calloc(), and mspace_independent_comalloc().

Here is the caller graph for this function:

void** dlindependent_calloc ( size_t  n_elements,
size_t  elem_size,
void *  chunks[] 
)

Definition at line 4717 of file memory-gnu-internal.C.

References ialloc().

Here is the call graph for this function:

void** dlindependent_comalloc ( size_t  n_elements,
size_t  sizes[],
void *  chunks[] 
)

Definition at line 4723 of file memory-gnu-internal.C.

References ialloc().

Here is the call graph for this function:

static mstate init_user_mstate ( char *  tbase,
size_t  tsize 
) [static]

size_t mspace_usable_size ( void *  mem  ) 

Definition at line 5221 of file memory-gnu-internal.C.

References p.


Variable Documentation

int dev_zero_fd = -1 [static]

Definition at line 1446 of file memory-gnu-internal.C.

static MLOCK_T magic_init_mutex = {0, 0, 0 } [static]

Definition at line 1615 of file memory-gnu-internal.C.

static MLOCK_T morecore_mutex = {0, 0, 0 } [static]

Definition at line 1617 of file memory-gnu-internal.C.

struct malloc_params mparams [static]

struct malloc_state _gm_ [static]

Definition at line 2383 of file memory-gnu-internal.C.

Definition at line 2512 of file memory-gnu-internal.C.


Generated on Mon Sep 21 08:02:11 2020 for Charm++ by  doxygen 1.5.5