mirror of
https://github.com/jemalloc/jemalloc
synced 2026-06-08 15:01:07 +00:00
e476f8a161
Fix a stats bug in large object curruns accounting. Replace tcache_bin_fill() with arena_tcache_fill(), and fix a bug in an OOM error path. Fix API name mangling to coexist with __attribute__((malloc)).
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
#ifdef JEMALLOC_TRACE
|
|
/******************************************************************************/
|
|
#ifdef JEMALLOC_H_TYPES
|
|
|
|
#endif /* JEMALLOC_H_TYPES */
|
|
/******************************************************************************/
|
|
#ifdef JEMALLOC_H_STRUCTS
|
|
|
|
#endif /* JEMALLOC_H_STRUCTS */
|
|
/******************************************************************************/
|
|
#ifdef JEMALLOC_H_EXTERNS
|
|
|
|
extern bool opt_trace;
|
|
|
|
void trace_malloc(const void *ptr, size_t size);
|
|
void trace_calloc(const void *ptr, size_t number, size_t size);
|
|
void trace_posix_memalign(const void *ptr, size_t alignment, size_t size);
|
|
void trace_realloc(const void *ptr, const void *old_ptr, size_t size,
|
|
size_t old_size);
|
|
void trace_free(const void *ptr, size_t size);
|
|
void trace_malloc_usable_size(size_t size, const void *ptr);
|
|
void trace_thread_exit(void);
|
|
|
|
void trace_boot(void);
|
|
|
|
#endif /* JEMALLOC_H_EXTERNS */
|
|
/******************************************************************************/
|
|
#ifdef JEMALLOC_H_INLINES
|
|
|
|
#endif /* JEMALLOC_H_INLINES */
|
|
/******************************************************************************/
|
|
#endif /* JEMALLOC_TRACE */
|