#include "jemalloc_internal_defs.h"
#include "jemalloc_internal_decls.h"
#include "../jemalloc.h"
#include "private_namespace.h"
#include "ph.h"
#include "rb.h"
#include "qr.h"
#include "ql.h"
#include "jemalloc_internal_macros.h"
#include <stdlib.h>
#include "nstime.h"
#include "valgrind.h"
#include "util.h"
#include "atomic.h"
#include "spin.h"
#include "prng.h"
#include "ticker.h"
#include "ckh.h"
#include "size_classes.h"
#include "smoothstep.h"
#include "stats.h"
#include "ctl.h"
#include "witness.h"
#include "mutex.h"
#include "tsd.h"
#include "mb.h"
#include "extent.h"
#include "arena.h"
#include "bitmap.h"
#include "base.h"
#include "rtree.h"
#include "pages.h"
#include "chunk.h"
#include "huge.h"
#include "tcache.h"
#include "hash.h"
#include "quarantine.h"
#include "prof.h"
Go to the source code of this file.
|
arena_t * | a0get (void) |
|
void * | a0malloc (size_t size) |
|
void | a0dalloc (void *ptr) |
|
void * | bootstrap_malloc (size_t size) |
|
void * | bootstrap_calloc (size_t num, size_t size) |
|
void | bootstrap_free (void *ptr) |
|
unsigned | narenas_total_get (void) |
|
arena_t * | arena_init (tsdn_t *tsdn, unsigned ind) |
|
arena_tdata_t * | arena_tdata_get_hard (tsd_t *tsd, unsigned ind) |
|
arena_t * | arena_choose_hard (tsd_t *tsd, bool internal) |
|
void | arena_migrate (tsd_t *tsd, unsigned oldind, unsigned newind) |
|
void | thread_allocated_cleanup (tsd_t *tsd) |
|
void | thread_deallocated_cleanup (tsd_t *tsd) |
|
void | iarena_cleanup (tsd_t *tsd) |
|
void | arena_cleanup (tsd_t *tsd) |
|
void | arenas_tdata_cleanup (tsd_t *tsd) |
|
void | narenas_tdata_cleanup (tsd_t *tsd) |
|
void | arenas_tdata_bypass_cleanup (tsd_t *tsd) |
|
void | jemalloc_prefork (void) |
|
void | jemalloc_postfork_parent (void) |
|
void | jemalloc_postfork_child (void) |
|
pszind_t | psz2ind (size_t psz) |
|
size_t | pind2sz_compute (pszind_t pind) |
|
size_t | pind2sz_lookup (pszind_t pind) |
|
size_t | pind2sz (pszind_t pind) |
|
size_t | psz2u (size_t psz) |
|
szind_t | size2index_compute (size_t size) |
|
szind_t | size2index_lookup (size_t size) |
|
szind_t | size2index (size_t size) |
|
size_t | index2size_compute (szind_t index) |
|
size_t | index2size_lookup (szind_t index) |
|
size_t | index2size (szind_t index) |
|
size_t | s2u_compute (size_t size) |
|
size_t | s2u_lookup (size_t size) |
|
size_t | s2u (size_t size) |
|
size_t | sa2u (size_t size, size_t alignment) |
|
arena_t * | arena_choose_impl (tsd_t *tsd, arena_t *arena, bool internal) |
|
arena_t * | arena_choose (tsd_t *tsd, arena_t *arena) |
|
arena_t * | arena_ichoose (tsd_t *tsd, arena_t *arena) |
|
arena_tdata_t * | arena_tdata_get (tsd_t *tsd, unsigned ind, bool refresh_if_missing) |
|
arena_t * | arena_get (tsdn_t *tsdn, unsigned ind, bool init_if_missing) |
|
ticker_t * | decay_ticker_get (tsd_t *tsd, unsigned ind) |
|
◆ ALIGNMENT_ADDR2BASE
#define ALIGNMENT_ADDR2BASE |
( |
|
a, |
|
|
|
alignment |
|
) |
| ((void *)((uintptr_t)(a) & ((~(alignment)) + 1))) |
◆ ALIGNMENT_ADDR2OFFSET
#define ALIGNMENT_ADDR2OFFSET |
( |
|
a, |
|
|
|
alignment |
|
) |
| ((size_t)((uintptr_t)(a) & (alignment - 1))) |
◆ ALIGNMENT_CEILING
#define ALIGNMENT_CEILING |
( |
|
s, |
|
|
|
alignment |
|
) |
| (((s) + (alignment - 1)) & ((~(alignment)) + 1)) |
◆ CACHELINE
◆ CACHELINE_CEILING
◆ CACHELINE_MASK
◆ JEMALLOC_ARENA_INLINE_A
#define JEMALLOC_ARENA_INLINE_A |
◆ JEMALLOC_ARENA_INLINE_B
#define JEMALLOC_ARENA_INLINE_B |
◆ JEMALLOC_ARENA_STRUCTS_A
#define JEMALLOC_ARENA_STRUCTS_A |
◆ JEMALLOC_ARENA_STRUCTS_B
#define JEMALLOC_ARENA_STRUCTS_B |
◆ JEMALLOC_H_EXTERNS
#define JEMALLOC_H_EXTERNS |
◆ JEMALLOC_H_INLINES
#define JEMALLOC_H_INLINES |
◆ JEMALLOC_H_STRUCTS
#define JEMALLOC_H_STRUCTS |
◆ JEMALLOC_H_TYPES
◆ JEMALLOC_N
#define JEMALLOC_N |
( |
|
n | ) |
je_##n |
◆ JEMALLOC_NO_DEMANGLE
#define JEMALLOC_NO_DEMANGLE |
◆ LG_CACHELINE
◆ LONG
◆ LONG_CEILING
◆ LONG_MASK
#define LONG_MASK (LONG - 1) |
◆ MALLOCX_ALIGN_GET
◆ MALLOCX_ALIGN_GET_SPECIFIED
◆ MALLOCX_ARENA_GET
◆ MALLOCX_ARENA_MASK
#define MALLOCX_ARENA_MASK ((int)~0xfffff) |
◆ MALLOCX_ARENA_MAX
#define MALLOCX_ARENA_MAX 0xffe |
◆ MALLOCX_LG_ALIGN_MASK
#define MALLOCX_LG_ALIGN_MASK ((int)0x3f) |
◆ MALLOCX_TCACHE_GET
◆ MALLOCX_TCACHE_MASK
#define MALLOCX_TCACHE_MASK ((int)~0xfff000ffU) |
◆ MALLOCX_TCACHE_MAX
#define MALLOCX_TCACHE_MAX 0xffd |
◆ MALLOCX_ZERO_GET
◆ PAGE
◆ PAGE_ADDR2BASE
◆ PAGE_CEILING
◆ PAGE_MASK
◆ PTR_CEILING
◆ PTR_MASK
◆ QUANTUM
#define QUANTUM ((size_t)(1U << LG_QUANTUM)) |
◆ QUANTUM_CEILING
◆ QUANTUM_MASK
◆ RB_COMPACT
◆ SIZEOF_PTR
◆ TINY_MIN
◆ VARIABLE_ARRAY
◆ pszind_t
◆ szind_t
◆ a0dalloc()
void a0dalloc |
( |
void * |
ptr | ) |
|
◆ a0get()
◆ a0malloc()
◆ arena_choose()
arena_t* arena_choose |
( |
tsd_t * |
tsd, |
|
|
arena_t * |
arena |
|
) |
| |
◆ arena_choose_hard()
arena_t* arena_choose_hard |
( |
tsd_t * |
tsd, |
|
|
bool |
internal |
|
) |
| |
◆ arena_choose_impl()
arena_t* arena_choose_impl |
( |
tsd_t * |
tsd, |
|
|
arena_t * |
arena, |
|
|
bool |
internal |
|
) |
| |
◆ arena_cleanup()
void arena_cleanup |
( |
tsd_t * |
tsd | ) |
|
◆ arena_get()
arena_t* arena_get |
( |
tsdn_t * |
tsdn, |
|
|
unsigned |
ind, |
|
|
bool |
init_if_missing |
|
) |
| |
◆ arena_ichoose()
arena_t* arena_ichoose |
( |
tsd_t * |
tsd, |
|
|
arena_t * |
arena |
|
) |
| |
◆ arena_init()
arena_t* arena_init |
( |
tsdn_t * |
tsdn, |
|
|
unsigned |
ind |
|
) |
| |
◆ arena_migrate()
◆ arena_tdata_get()
arena_tdata_t* arena_tdata_get |
( |
tsd_t * |
tsd, |
|
|
unsigned |
ind, |
|
|
bool |
refresh_if_missing |
|
) |
| |
◆ arena_tdata_get_hard()
arena_tdata_t* arena_tdata_get_hard |
( |
tsd_t * |
tsd, |
|
|
unsigned |
ind |
|
) |
| |
◆ arenas_tdata_bypass_cleanup()
void arenas_tdata_bypass_cleanup |
( |
tsd_t * |
tsd | ) |
|
◆ arenas_tdata_cleanup()
void arenas_tdata_cleanup |
( |
tsd_t * |
tsd | ) |
|
◆ bootstrap_calloc()
◆ bootstrap_free()
void bootstrap_free |
( |
void * |
ptr | ) |
|
◆ bootstrap_malloc()
void* bootstrap_malloc |
( |
size_t |
size | ) |
|
◆ decay_ticker_get()
ticker_t* decay_ticker_get |
( |
tsd_t * |
tsd, |
|
|
unsigned |
ind |
|
) |
| |
◆ iarena_cleanup()
void iarena_cleanup |
( |
tsd_t * |
tsd | ) |
|
◆ index2size()
◆ index2size_compute()
◆ index2size_lookup()
◆ jemalloc_postfork_child()
void jemalloc_postfork_child |
( |
void |
| ) |
|
◆ jemalloc_postfork_parent()
void jemalloc_postfork_parent |
( |
void |
| ) |
|
◆ jemalloc_prefork()
void jemalloc_prefork |
( |
void |
| ) |
|
◆ narenas_tdata_cleanup()
void narenas_tdata_cleanup |
( |
tsd_t * |
tsd | ) |
|
◆ narenas_total_get()
◆ pind2sz()
◆ pind2sz_compute()
◆ pind2sz_lookup()
◆ psz2ind()
◆ psz2u()
◆ s2u()
◆ s2u_compute()
◆ s2u_lookup()
◆ sa2u()
◆ size2index()
◆ size2index_compute()
◆ size2index_lookup()
◆ thread_allocated_cleanup()
void thread_allocated_cleanup |
( |
tsd_t * |
tsd | ) |
|
◆ thread_deallocated_cleanup()
void thread_deallocated_cleanup |
( |
tsd_t * |
tsd | ) |
|
◆ arenas
◆ config_cache_oblivious
◆ config_debug
◆ config_fill
◆ config_ivsalloc
◆ config_lazy_lock
◆ config_malloc_conf
◆ config_munmap
◆ config_prof
◆ config_prof_libgcc
◆ config_prof_libunwind
◆ config_stats
◆ config_tcache
◆ config_thp
◆ config_tls
◆ config_utrace
◆ config_valgrind
◆ config_xmalloc
◆ have_dss
◆ in_valgrind
◆ index2size_tab
◆ maps_coalesce
◆ narenas_auto
◆ ncpus
◆ opt_abort
◆ opt_junk
◆ opt_junk_alloc
◆ opt_junk_free
◆ opt_narenas
◆ opt_quarantine
◆ opt_redzone
◆ opt_utrace
◆ opt_xmalloc
◆ opt_zero
◆ pind2sz_tab
◆ size2index_tab