#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <limits.h>
#include <strings.h>
Go to the source code of this file.
|
typedef void *() | chunk_alloc_t(void *, size_t, size_t, bool *, bool *, unsigned) |
|
typedef bool() | chunk_dalloc_t(void *, size_t, bool, unsigned) |
|
typedef bool() | chunk_commit_t(void *, size_t, size_t, size_t, unsigned) |
|
typedef bool() | chunk_decommit_t(void *, size_t, size_t, size_t, unsigned) |
|
typedef bool() | chunk_purge_t(void *, size_t, size_t, size_t, unsigned) |
|
typedef bool() | chunk_split_t(void *, size_t, size_t, size_t, bool, unsigned) |
|
typedef bool() | chunk_merge_t(void *, size_t, void *, size_t, bool, unsigned) |
|
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_malloc (size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(1) |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_calloc (size_t num, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE2(1 |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW JEMALLOC_EXPORT int JEMALLOC_NOTHROW | je_posix_memalign (void **memptr, size_t alignment, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(nonnull(1)) |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_aligned_alloc (size_t alignment, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(2) |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_realloc (void *ptr, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ALLOC_SIZE(2) |
|
JEMALLOC_EXPORT void JEMALLOC_NOTHROW | je_free (void *ptr) JEMALLOC_CXX_THROW |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_mallocx (size_t size, int flags) JEMALLOC_ATTR(malloc) JEMALLOC_ALLOC_SIZE(1) |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_rallocx (void *ptr, size_t size, int flags) JEMALLOC_ALLOC_SIZE(2) |
|
JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW | je_xallocx (void *ptr, size_t size, size_t extra, int flags) |
|
JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW | je_sallocx (const void *ptr, int flags) JEMALLOC_ATTR(pure) |
|
JEMALLOC_EXPORT void JEMALLOC_NOTHROW | je_dallocx (void *ptr, int flags) |
|
JEMALLOC_EXPORT void JEMALLOC_NOTHROW | je_sdallocx (void *ptr, size_t size, int flags) |
|
JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW | je_nallocx (size_t size, int flags) JEMALLOC_ATTR(pure) |
|
JEMALLOC_EXPORT int JEMALLOC_NOTHROW | je_mallctl (const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen) |
|
JEMALLOC_EXPORT int JEMALLOC_NOTHROW | je_mallctlnametomib (const char *name, size_t *mibp, size_t *miblenp) |
|
JEMALLOC_EXPORT int JEMALLOC_NOTHROW | je_mallctlbymib (const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, void *newp, size_t newlen) |
|
JEMALLOC_EXPORT void JEMALLOC_NOTHROW | je_malloc_stats_print (void(*write_cb)(void *, const char *), void *je_cbopaque, const char *opts) |
|
JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW | je_malloc_usable_size (JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_memalign (size_t alignment, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) |
|
JEMALLOC_EXPORT JEMALLOC_ALLOCATOR JEMALLOC_RESTRICT_RETURN void JEMALLOC_NOTHROW * | je_valloc (size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(malloc) |
|
◆ je_aligned_alloc
#define je_aligned_alloc aligned_alloc |
◆ je_calloc
◆ je_dallocx
#define je_dallocx dallocx |
◆ je_free
◆ je_mallctl
#define je_mallctl mallctl |
◆ je_mallctlbymib
#define je_mallctlbymib mallctlbymib |
◆ je_mallctlnametomib
#define je_mallctlnametomib mallctlnametomib |
◆ je_malloc
◆ je_malloc_conf
#define je_malloc_conf malloc_conf |
◆ je_malloc_message
#define je_malloc_message malloc_message |
◆ je_malloc_stats_print
#define je_malloc_stats_print malloc_stats_print |
◆ je_mallocx
#define je_mallocx mallocx |
◆ je_memalign
#define je_memalign memalign |
◆ je_nallocx
#define je_nallocx nallocx |
◆ je_posix_memalign
#define je_posix_memalign posix_memalign |
◆ je_rallocx
#define je_rallocx rallocx |
◆ je_realloc
◆ je_sallocx
#define je_sallocx sallocx |
◆ je_sdallocx
#define je_sdallocx sdallocx |
◆ je_valloc
◆ je_xallocx
#define je_xallocx xallocx |
◆ JEMALLOC_ALIGNED
◆ JEMALLOC_ALLOC_SIZE
#define JEMALLOC_ALLOC_SIZE |
( |
|
s | ) |
|
◆ JEMALLOC_ALLOC_SIZE2
#define JEMALLOC_ALLOC_SIZE2 |
( |
|
s1, |
|
|
|
s2 |
|
) |
| |
◆ JEMALLOC_ALLOCATOR
#define JEMALLOC_ALLOCATOR |
◆ JEMALLOC_ATTR
◆ JEMALLOC_CXX_THROW
#define JEMALLOC_CXX_THROW |
◆ JEMALLOC_EXPORT
◆ JEMALLOC_FORMAT_PRINTF
◆ JEMALLOC_HAVE_ATTR
#define JEMALLOC_HAVE_ATTR |
◆ JEMALLOC_HAVE_ATTR_ALLOC_SIZE
#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE |
◆ JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF
#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF |
◆ JEMALLOC_HAVE_ATTR_FORMAT_PRINTF
#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF |
◆ JEMALLOC_NOINLINE
◆ JEMALLOC_NOTHROW
◆ JEMALLOC_OVERRIDE_MEMALIGN
#define JEMALLOC_OVERRIDE_MEMALIGN |
◆ JEMALLOC_OVERRIDE_VALLOC
#define JEMALLOC_OVERRIDE_VALLOC |
◆ JEMALLOC_RESTRICT_RETURN
#define JEMALLOC_RESTRICT_RETURN |
◆ JEMALLOC_SECTION
◆ JEMALLOC_USABLE_SIZE_CONST
#define JEMALLOC_USABLE_SIZE_CONST |
◆ JEMALLOC_USE_CXX_THROW
#define JEMALLOC_USE_CXX_THROW |
◆ JEMALLOC_VERSION
#define JEMALLOC_VERSION "4.5.0-0-g04380e79f1e2428bd0ad000bbc6e3d2dfc6b66a5" |
◆ JEMALLOC_VERSION_BUGFIX
#define JEMALLOC_VERSION_BUGFIX 0 |
◆ JEMALLOC_VERSION_GID
#define JEMALLOC_VERSION_GID "04380e79f1e2428bd0ad000bbc6e3d2dfc6b66a5" |
◆ JEMALLOC_VERSION_MAJOR
#define JEMALLOC_VERSION_MAJOR 4 |
◆ JEMALLOC_VERSION_MINOR
#define JEMALLOC_VERSION_MINOR 5 |
◆ JEMALLOC_VERSION_NREV
#define JEMALLOC_VERSION_NREV 0 |
◆ LG_SIZEOF_PTR
◆ MALLOCX_ALIGN
#define MALLOCX_ALIGN |
( |
|
a | ) |
|
Value: ((
int)(((
size_t)(
a) < (
size_t)
INT_MAX) ? ffs((
int)(
a))-1 : \
ffs((
int)(((
size_t)(
a))>>32))+31))
Definition at line 100 of file jemalloc.h.
◆ MALLOCX_ARENA
#define MALLOCX_ARENA |
( |
|
a | ) |
((((int)(a))+1) << 20) |
◆ MALLOCX_LG_ALIGN
#define MALLOCX_LG_ALIGN |
( |
|
la | ) |
((int)(la)) |
◆ MALLOCX_TCACHE
#define MALLOCX_TCACHE |
( |
|
tc | ) |
((int)(((tc)+2) << 8)) |
◆ MALLOCX_TCACHE_NONE
◆ MALLOCX_ZERO
#define MALLOCX_ZERO ((int)0x40) |
◆ chunk_alloc_t
◆ chunk_commit_t
◆ chunk_dalloc_t
◆ chunk_decommit_t
◆ chunk_merge_t
◆ chunk_purge_t
◆ chunk_split_t
◆ je_aligned_alloc()
◆ je_calloc()
◆ je_dallocx()
◆ je_free()
◆ je_mallctl()
◆ je_mallctlbymib()
◆ je_mallctlnametomib()
◆ je_malloc()
◆ je_malloc_stats_print()
◆ je_malloc_usable_size()
◆ je_mallocx()
◆ je_memalign()
◆ je_nallocx()
◆ je_posix_memalign()
◆ je_rallocx()
◆ je_realloc()
◆ je_sallocx()
◆ je_sdallocx()
◆ je_valloc()
◆ je_xallocx()
◆ je_malloc_conf
◆ je_malloc_message