huge.h revision 12141150fdbda57651a53ae2fe0edaea4891d814
1/******************************************************************************/ 2#ifdef JEMALLOC_H_TYPES 3 4#endif /* JEMALLOC_H_TYPES */ 5/******************************************************************************/ 6#ifdef JEMALLOC_H_STRUCTS 7 8#endif /* JEMALLOC_H_STRUCTS */ 9/******************************************************************************/ 10#ifdef JEMALLOC_H_EXTERNS 11 12void *huge_malloc(arena_t *arena, size_t size, bool zero); 13void *huge_palloc(arena_t *arena, size_t size, size_t alignment, bool zero); 14bool huge_ralloc_no_move(void *ptr, size_t oldsize, size_t size, 15 size_t extra); 16void *huge_ralloc(arena_t *arena, void *ptr, size_t oldsize, size_t size, 17 size_t extra, size_t alignment, bool zero, bool try_tcache_dalloc); 18#ifdef JEMALLOC_JET 19typedef void (huge_dalloc_junk_t)(void *, size_t); 20extern huge_dalloc_junk_t *huge_dalloc_junk; 21#endif 22void huge_dalloc(void *ptr); 23size_t huge_salloc(const void *ptr); 24prof_ctx_t *huge_prof_ctx_get(const void *ptr); 25void huge_prof_ctx_set(const void *ptr, prof_ctx_t *ctx); 26bool huge_boot(void); 27void huge_prefork(void); 28void huge_postfork_parent(void); 29void huge_postfork_child(void); 30 31#endif /* JEMALLOC_H_EXTERNS */ 32/******************************************************************************/ 33#ifdef JEMALLOC_H_INLINES 34 35#endif /* JEMALLOC_H_INLINES */ 36/******************************************************************************/ 37