diff options
| author | Jason Evans <jasone@canonware.com> | 2009-06-26 01:06:48 (GMT) |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2009-06-26 01:06:48 (GMT) |
| commit | cc00a157703d5da61b9ffc29a80077c4aafa0277 (patch) | |
| tree | eb468e55e72eb78399a4443438abc9ea89697e5c /jemalloc/src/jemalloc.h | |
| parent | b7924f50c02be555a445771e7bd51209250a5d52 (diff) | |
| download | jemalloc-cc00a157703d5da61b9ffc29a80077c4aafa0277.zip jemalloc-cc00a157703d5da61b9ffc29a80077c4aafa0277.tar.gz jemalloc-cc00a157703d5da61b9ffc29a80077c4aafa0277.tar.bz2 | |
Clean up the manpage and conditionalize various portions according to how
jemalloc is configured.
Modify arena_malloc() API to avoid unnecessary choose_arena() calls. Remove
unnecessary code from choose_arena().
Enable lazy-lock by default, now that choose_arena() is both faster and out of
the critical path.
Implement objdir support in the build system.
Diffstat (limited to 'jemalloc/src/jemalloc.h')
| -rw-r--r-- | jemalloc/src/jemalloc.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/jemalloc/src/jemalloc.h b/jemalloc/src/jemalloc.h index dbff468..21b8de5 100644 --- a/jemalloc/src/jemalloc.h +++ b/jemalloc/src/jemalloc.h @@ -28,10 +28,24 @@ ******************************************************************************* */ +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef JEMALLOC_H_ +#define JEMALLOC_H_ + +#include "jemalloc_defs.h" + +size_t malloc_usable_size(const void *ptr); + extern const char *jemalloc_options; extern void (*jemalloc_message)(const char *p1, const char *p2, const char *p3, const char *p4); -void jemalloc_thread_cleanup(void); -void jemalloc_prefork(void); -void jemalloc_postfork(void); +#endif /* JEMALLOC_H_ */ + +#ifdef __cplusplus +}; +#endif + |
