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_chunk * | mchunkptr |
typedef struct malloc_chunk * | sbinptr |
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_chunk * | tchunkptr |
typedef struct malloc_tree_chunk * | tbinptr |
typedef struct malloc_segment | msegment |
typedef struct malloc_segment * | msegmentptr |
typedef struct malloc_state * | mstate |
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 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.
Definition at line 1952 of file memory-gnu-internal.C.
Definition at line 1953 of file memory-gnu-internal.C.
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.
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().
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().
Definition at line 4675 of file memory-gnu-internal.C.
References dlmalloc().
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.
Definition at line 4713 of file memory-gnu-internal.C.
References internal_memalign().
Referenced by dlpvalloc(), and dlvalloc().
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.
Definition at line 4778 of file memory-gnu-internal.C.
References change_mparam().
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().
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.
Definition at line 4742 of file memory-gnu-internal.C.
References sys_trim().
size_t dlmalloc_usable_size | ( | void * | mem | ) |
void dlmalloc_stats | ( | void | ) |
Definition at line 4765 of file memory-gnu-internal.C.
References internal_malloc_stats().
Definition at line 4811 of file memory-gnu-internal.C.
References malloc_params::granularity, init_mparams(), init_user_mstate(), PUP::m, mparams, malloc_params::page_size, rs, malloc_state::seg, and malloc_segment::sflags.
Definition at line 4844 of file memory-gnu-internal.C.
References malloc_segment::base, flag, malloc_segment::next, malloc_state::seg, malloc_segment::sflags, malloc_segment::size, and size.
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().
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().
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().
Definition at line 5106 of file memory-gnu-internal.C.
References internal_realloc(), mspace_free(), mspace_malloc(), and p.
Referenced by alignas().
Definition at line 5086 of file memory-gnu-internal.C.
Referenced by alignas().
Definition at line 5130 of file memory-gnu-internal.C.
References internal_memalign().
Referenced by alignas().
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().
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().
Definition at line 5212 of file memory-gnu-internal.C.
References internal_mallinfo().
void mspace_malloc_stats | ( | mspace | msp | ) |
Definition at line 5175 of file memory-gnu-internal.C.
References internal_malloc_stats().
Referenced by alignas().
Definition at line 5160 of file memory-gnu-internal.C.
References sys_trim().
Referenced by alignas().
Definition at line 5230 of file memory-gnu-internal.C.
References change_mparam().
Referenced by alignas().
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] |
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.
Definition at line 1470 of file memory-gnu-internal.C.
static FORCEINLINE int pthread_acquire_lock | ( | MLOCK_T * | sl | ) | [static] |
static FORCEINLINE void pthread_release_lock | ( | MLOCK_T * | sl | ) | [static] |
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().
static FORCEINLINE int win32_acquire_lock | ( | MLOCK_T * | sl | ) | [static] |
static FORCEINLINE void win32_release_lock | ( | MLOCK_T * | sl | ) | [static] |
static FORCEINLINE int win32_try_lock | ( | MLOCK_T * | sl | ) | [static] |
static FORCEINLINE int pthread_init_lock | ( | MLOCK_T * | sl | ) | [static] |
static FORCEINLINE int pthread_islocked | ( | MLOCK_T * | sl | ) | [static] |
Definition at line 1723 of file memory-gnu-internal.C.
References pthread_try_lock().
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().
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().
static void reset_on_error | ( | mstate | m | ) | [static] |
Definition at line 3607 of file memory-gnu-internal.C.
References malloc_segment::base, malloc_state::dv, malloc_state::dvsize, init_bins(), malloc_segment::next, malloc_state::seg, malloc_segment::size, malloc_state::smallbins, malloc_state::top, malloc_state::topsize, and malloc_state::treebins.
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().
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().
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().
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().
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().
Definition at line 2986 of file memory-gnu-internal.C.
References assert, do_check_inuse_chunk(), malloc_chunk::head, and p.
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().
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().
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().
static void do_check_malloc_state | ( | mstate | m | ) | [static] |
Definition at line 3153 of file memory-gnu-internal.C.
References assert, bin_find(), do_check_any_chunk(), do_check_smallbin(), do_check_top_chunk(), do_check_treebin(), malloc_state::dv, malloc_state::dvsize, malloc_state::footprint, malloc_state::max_footprint, malloc_state::top, malloc_state::topsize, and traverse_and_check().
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().
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().
static int init_mparams | ( | void | ) | [static] |
Definition at line 2814 of file memory-gnu-internal.C.
References buf, Ck::IO::close(), malloc_params::default_mflags, fd, malloc_params::granularity, malloc_params::magic, malloc_params::mmap_threshold, mparams, Ck::IO::open(), malloc_params::page_size, PUP::s, size_t, stats::time(), and malloc_params::trim_threshold.
Referenced by change_mparam(), create_mspace(), create_mspace_with_base(), dlpvalloc(), dlvalloc(), and sys_alloc().
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().
Definition at line 3185 of file memory-gnu-internal.C.
References mallinfo::arena, malloc_segment::base, mallinfo::fordblks, mallinfo::hblkhd, malloc_chunk::head, mallinfo::keepcost, PUP::m, malloc_segment::next, mallinfo::ordblks, PUP::s, mallinfo::uordblks, and mallinfo::usmblks.
Referenced by dlmallinfo(), and mspace_mallinfo().
static void internal_malloc_stats | ( | mstate | m | ) | [static] |
Definition at line 3224 of file memory-gnu-internal.C.
References malloc_segment::base, malloc_state::footprint, malloc_chunk::head, malloc_state::max_footprint, malloc_segment::next, PUP::s, malloc_state::seg, malloc_state::top, malloc_state::topsize, and used.
Referenced by dlmalloc_stats(), and mspace_malloc_stats().
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().
Definition at line 3544 of file memory-gnu-internal.C.
References malloc_state::footprint, malloc_params::granularity, malloc_chunk::head, malloc_state::least_addr, malloc_state::max_footprint, mparams, offset, and malloc_chunk::prev_foot.
Referenced by internal_realloc().
Definition at line 3580 of file memory-gnu-internal.C.
References malloc_chunk::head, mparams, offset, malloc_state::top, malloc_state::topsize, malloc_state::trim_check, and malloc_params::trim_threshold.
Referenced by add_segment(), init_user_mstate(), sys_alloc(), and sys_trim().
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().
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().
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().
Definition at line 3721 of file memory-gnu-internal.C.
References add_segment(), malloc_segment::base, malloc_state::footprint, malloc_chunk::head, init_bins(), init_mparams(), init_top(), malloc_state::least_addr, malloc_params::magic, malloc_state::magic, malloc_state::max_footprint, mmap_alloc(), malloc_params::mmap_threshold, mparams, malloc_segment::next, p, prepend_alloc(), r, malloc_state::release_checks, malloc_state::seg, segment_holding(), malloc_segment::sflags, malloc_segment::size, size_t, malloc_state::top, and malloc_state::topsize.
Referenced by dlmalloc(), and mspace_malloc().
Definition at line 3918 of file memory-gnu-internal.C.
References assert, malloc_segment::base, malloc_state::dv, malloc_state::dvsize, malloc_state::footprint, malloc_segment::next, p, malloc_state::release_checks, malloc_state::seg, malloc_segment::size, and size.
Referenced by dlfree(), mspace_free(), and sys_trim().
Definition at line 3965 of file memory-gnu-internal.C.
References malloc_segment::base, malloc_state::footprint, malloc_params::granularity, has_segment_link(), init_top(), mparams, release_unused_segments(), segment_holding(), malloc_segment::size, malloc_state::top, malloc_state::topsize, and malloc_state::trim_check.
Referenced by dlfree(), dlmalloc_trim(), mspace_free(), and mspace_trim().
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().
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().
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().
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().
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().
Definition at line 4717 of file memory-gnu-internal.C.
References ialloc().
Definition at line 4723 of file memory-gnu-internal.C.
References ialloc().
Definition at line 4788 of file memory-gnu-internal.C.
References malloc_segment::base, malloc_params::default_mflags, malloc_state::extp, malloc_state::exts, malloc_state::footprint, malloc_chunk::head, init_bins(), init_top(), malloc_state::least_addr, PUP::m, malloc_params::magic, malloc_state::magic, malloc_state::max_footprint, malloc_state::mflags, mparams, malloc_state::mutex, malloc_state::release_checks, malloc_state::seg, malloc_segment::size, and malloc_state::top.
Referenced by create_mspace(), and create_mspace_with_base().
size_t mspace_usable_size | ( | void * | mem | ) |
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] |
Definition at line 2378 of file memory-gnu-internal.C.
Referenced by change_mparam(), create_mspace(), create_mspace_with_base(), dlpvalloc(), dlvalloc(), do_check_mmapped_chunk(), init_mparams(), init_top(), init_user_mstate(), mmap_resize(), sys_alloc(), and sys_trim().
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.