8 #define JEMALLOC_HAVE_ATTR
11 #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE
14 #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF
17 #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF
23 #define JEMALLOC_OVERRIDE_MEMALIGN
24 #define JEMALLOC_OVERRIDE_VALLOC
33 #define JEMALLOC_USABLE_SIZE_CONST
40 #define JEMALLOC_USE_CXX_THROW
44 # define LG_SIZEOF_PTR_WIN 3
46 # define LG_SIZEOF_PTR_WIN 2
51 #define LG_SIZEOF_PTR 3
58 #ifndef JEMALLOC_NO_RENAME
59 # define je_malloc_conf malloc_conf
60 # define je_malloc_message malloc_message
61 # define je_malloc malloc
62 # define je_calloc calloc
63 # define je_posix_memalign posix_memalign
64 # define je_aligned_alloc aligned_alloc
65 # define je_realloc realloc
67 # define je_mallocx mallocx
68 # define je_rallocx rallocx
69 # define je_xallocx xallocx
70 # define je_sallocx sallocx
71 # define je_dallocx dallocx
72 # define je_sdallocx sdallocx
73 # define je_nallocx nallocx
74 # define je_mallctl mallctl
75 # define je_mallctlnametomib mallctlnametomib
76 # define je_mallctlbymib mallctlbymib
77 # define je_malloc_stats_print malloc_stats_print
79 # define je_memalign memalign
80 # define je_valloc valloc
89 #define JEMALLOC_VERSION "4.5.0-0-g04380e79f1e2428bd0ad000bbc6e3d2dfc6b66a5"
90 #define JEMALLOC_VERSION_MAJOR 4
91 #define JEMALLOC_VERSION_MINOR 5
92 #define JEMALLOC_VERSION_BUGFIX 0
93 #define JEMALLOC_VERSION_NREV 0
94 #define JEMALLOC_VERSION_GID "04380e79f1e2428bd0ad000bbc6e3d2dfc6b66a5"
96 # define MALLOCX_LG_ALIGN(la) ((int)(la))
97 # if LG_SIZEOF_PTR == 2
98 # define MALLOCX_ALIGN(a) ((int)(ffs((int)(a))-1))
100 # define MALLOCX_ALIGN(a) \
101 ((int)(((size_t)(a) < (size_t)INT_MAX) ? ffs((int)(a))-1 : \
102 ffs((int)(((size_t)(a))>>32))+31))
104 # define MALLOCX_ZERO ((int)0x40)
109 # define MALLOCX_TCACHE(tc) ((int)(((tc)+2) << 8))
110 # define MALLOCX_TCACHE_NONE MALLOCX_TCACHE(-1)
114 # define MALLOCX_ARENA(a) ((((int)(a))+1) << 20)
116 #if defined(__cplusplus) && defined(JEMALLOC_USE_CXX_THROW)
117 # define JEMALLOC_CXX_THROW throw()
119 # define JEMALLOC_CXX_THROW
123 # define JEMALLOC_ATTR(s)
124 # define JEMALLOC_ALIGNED(s) __declspec(align(s))
125 # define JEMALLOC_ALLOC_SIZE(s)
126 # define JEMALLOC_ALLOC_SIZE2(s1, s2)
127 # ifndef JEMALLOC_EXPORT
129 # define JEMALLOC_EXPORT __declspec(dllexport)
131 # define JEMALLOC_EXPORT __declspec(dllimport)
134 # define JEMALLOC_FORMAT_PRINTF(s, i)
135 # define JEMALLOC_NOINLINE __declspec(noinline)
137 # define JEMALLOC_NOTHROW __declspec(nothrow)
139 # define JEMALLOC_NOTHROW
141 # define JEMALLOC_SECTION(s) __declspec(allocate(s))
142 # define JEMALLOC_RESTRICT_RETURN __declspec(restrict)
143 # if _MSC_VER >= 1900 && !defined(__EDG__)
144 # define JEMALLOC_ALLOCATOR __declspec(allocator)
146 # define JEMALLOC_ALLOCATOR
148 #elif defined(JEMALLOC_HAVE_ATTR)
149 # define JEMALLOC_ATTR(s) __attribute__((s))
150 # define JEMALLOC_ALIGNED(s) JEMALLOC_ATTR(aligned(s))
153 # define JEMALLOC_ALLOC_SIZE(s) JEMALLOC_ATTR(alloc_size(s))
154 # define JEMALLOC_ALLOC_SIZE2(s1, s2) JEMALLOC_ATTR(alloc_size(s1, s2))
156 # define JEMALLOC_ALLOC_SIZE(s)
157 # define JEMALLOC_ALLOC_SIZE2(s1, s2)
159 # ifndef JEMALLOC_EXPORT
160 # define JEMALLOC_EXPORT JEMALLOC_ATTR(visibility("default"))
162 # ifdef JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF
163 # define JEMALLOC_FORMAT_PRINTF(s, i) JEMALLOC_ATTR(format(gnu_printf, s, i))
164 # elif defined(JEMALLOC_HAVE_ATTR_FORMAT_PRINTF)
165 # define JEMALLOC_FORMAT_PRINTF(s, i) JEMALLOC_ATTR(format(printf, s, i))
167 # define JEMALLOC_FORMAT_PRINTF(s, i)
169 # define JEMALLOC_NOINLINE JEMALLOC_ATTR(noinline)
170 # define JEMALLOC_NOTHROW JEMALLOC_ATTR(nothrow)
171 # define JEMALLOC_SECTION(s) JEMALLOC_ATTR(section(s))
172 # define JEMALLOC_RESTRICT_RETURN
173 # define JEMALLOC_ALLOCATOR
175 # define JEMALLOC_ATTR(s)
176 # define JEMALLOC_ALIGNED(s)
177 # define JEMALLOC_ALLOC_SIZE(s)
178 # define JEMALLOC_ALLOC_SIZE2(s1, s2)
179 # define JEMALLOC_EXPORT
180 # define JEMALLOC_FORMAT_PRINTF(s, i)
181 # define JEMALLOC_NOINLINE
182 # define JEMALLOC_NOTHROW
183 # define JEMALLOC_SECTION(s)
184 # define JEMALLOC_RESTRICT_RETURN
185 # define JEMALLOC_ALLOCATOR
222 size_t extra,
int flags);
232 void *oldp,
size_t *oldlenp,
void *newp,
size_t newlen);
234 size_t *mibp,
size_t *miblenp);
236 size_t miblen,
void *oldp,
size_t *oldlenp,
void *newp,
size_t newlen);
238 void (*write_cb)(
void *,
const char *),
void *je_cbopaque,
243 #ifdef JEMALLOC_OVERRIDE_MEMALIGN
249 #ifdef JEMALLOC_OVERRIDE_VALLOC
260 typedef void *(
chunk_alloc_t)(
void *,
size_t,
size_t,
bool *,
bool *,
unsigned);
320 #ifdef JEMALLOC_MANGLE
321 # ifndef JEMALLOC_NO_DEMANGLE
322 # define JEMALLOC_NO_DEMANGLE
324 # define malloc_conf je_malloc_conf
325 # define malloc_message je_malloc_message
326 # define malloc je_malloc
327 # define calloc je_calloc
328 # define posix_memalign je_posix_memalign
329 # define aligned_alloc je_aligned_alloc
330 # define realloc je_realloc
331 # define free je_free
332 # define mallocx je_mallocx
333 # define rallocx je_rallocx
334 # define xallocx je_xallocx
335 # define sallocx je_sallocx
336 # define dallocx je_dallocx
337 # define sdallocx je_sdallocx
338 # define nallocx je_nallocx
339 # define mallctl je_mallctl
340 # define mallctlnametomib je_mallctlnametomib
341 # define mallctlbymib je_mallctlbymib
342 # define malloc_stats_print je_malloc_stats_print
343 # define malloc_usable_size je_malloc_usable_size
344 # define memalign je_memalign
345 # define valloc je_valloc
355 #ifndef JEMALLOC_NO_DEMANGLE
356 # undef je_malloc_conf
357 # undef je_malloc_message
360 # undef je_posix_memalign
361 # undef je_aligned_alloc
372 # undef je_mallctlnametomib
373 # undef je_mallctlbymib
374 # undef je_malloc_stats_print
375 # undef je_malloc_usable_size
#define JEMALLOC_RESTRICT_RETURN
#define je_posix_memalign
bool() chunk_split_t(void *, size_t, size_t, size_t, bool, unsigned)
JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW je_malloc_usable_size(JEMALLOC_USABLE_SIZE_CONST void *ptr) JEMALLOC_CXX_THROW
bool() chunk_merge_t(void *, size_t, void *, size_t, bool, unsigned)
#define JEMALLOC_ALLOC_SIZE(s)
void *() chunk_alloc_t(void *, size_t, size_t, bool *, bool *, unsigned)
bool() chunk_purge_t(void *, size_t, size_t, size_t, unsigned)
bool() chunk_commit_t(void *, size_t, size_t, size_t, unsigned)
#define JEMALLOC_USABLE_SIZE_CONST
#define je_malloc_message
bool() chunk_decommit_t(void *, size_t, size_t, size_t, unsigned)
#define JEMALLOC_ALLOC_SIZE2(s1, s2)
#define je_mallctlnametomib
#define je_malloc_stats_print
#define JEMALLOC_ALLOCATOR
bool() chunk_dalloc_t(void *, size_t, bool, unsigned)
#define JEMALLOC_CXX_THROW
void * malloc(size_t size)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc static sig const char static mode static oldfd struct tms static buf static getgid static geteuid const char static filename static arg static mask struct ustat static ubuf static getppid static setsid static egid sigset_t static set struct timeval struct timezone static tz fd_set fd_set fd_set struct timeval static timeout const char char static bufsiz const char static swapflags void static offset const char static length static mode static who const char struct statfs static buf unsigned unsigned num
static void struct sockaddr socklen_t static fromlen static backlog static fork char char char static envp int struct rusage static rusage struct utsname static buf struct sembuf unsigned
static struct sockaddr static addrlen static backlog const void static flags void flags
chunk_decommit_t * decommit