summaryrefslogtreecommitdiffstats
path: root/jemalloc/src/jemalloc.h
blob: 94bb752d1908b215c329d1067130635e232bd5a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef JEMALLOC_H_
#define	JEMALLOC_H_
#ifdef __cplusplus
extern "C" {
#endif

#include "jemalloc_defs.h"

size_t	malloc_usable_size(const void *ptr);

#ifdef JEMALLOC_TCACHE
void	malloc_tcache_flush(void);
#endif

extern const char	*malloc_options;
extern void		(*malloc_message)(const char *p1,
    const char *p2, const char *p3, const char *p4);

#ifdef __cplusplus
};
#endif
#endif /* JEMALLOC_H_ */