2009-12-29 16:09:15 +08:00
|
|
|
#ifndef JEMALLOC_H_
|
|
|
|
#define JEMALLOC_H_
|
2009-06-26 09:06:48 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "jemalloc_defs.h"
|
|
|
|
|
|
|
|
size_t malloc_usable_size(const void *ptr);
|
|
|
|
|
2009-12-29 16:09:15 +08:00
|
|
|
#ifdef JEMALLOC_TCACHE
|
|
|
|
void malloc_tcache_flush(void);
|
|
|
|
#endif
|
|
|
|
|
2009-12-29 16:09:15 +08:00
|
|
|
extern const char *malloc_options;
|
|
|
|
extern void (*malloc_message)(const char *p1,
|
|
|
|
const char *p2, const char *p3, const char *p4);
|
2009-06-26 09:06:48 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
};
|
|
|
|
#endif
|
2009-12-29 16:09:15 +08:00
|
|
|
#endif /* JEMALLOC_H_ */
|