]>
git.saurik.com Git - redis.git/blob - deps/jemalloc.orig/include/jemalloc/internal/huge.h
1 /******************************************************************************/
2 #ifdef JEMALLOC_H_TYPES
4 #endif /* JEMALLOC_H_TYPES */
5 /******************************************************************************/
6 #ifdef JEMALLOC_H_STRUCTS
8 #endif /* JEMALLOC_H_STRUCTS */
9 /******************************************************************************/
10 #ifdef JEMALLOC_H_EXTERNS
13 /* Huge allocation statistics. */
14 extern uint64_t huge_nmalloc
;
15 extern uint64_t huge_ndalloc
;
16 extern size_t huge_allocated
;
19 /* Protects chunk-related data structures. */
20 extern malloc_mutex_t huge_mtx
;
22 void *huge_malloc(size_t size
, bool zero
);
23 void *huge_palloc(size_t size
, size_t alignment
, bool zero
);
24 void *huge_ralloc_no_move(void *ptr
, size_t oldsize
, size_t size
,
26 void *huge_ralloc(void *ptr
, size_t oldsize
, size_t size
, size_t extra
,
27 size_t alignment
, bool zero
);
28 void huge_dalloc(void *ptr
, bool unmap
);
29 size_t huge_salloc(const void *ptr
);
31 prof_ctx_t
*huge_prof_ctx_get(const void *ptr
);
32 void huge_prof_ctx_set(const void *ptr
, prof_ctx_t
*ctx
);
36 #endif /* JEMALLOC_H_EXTERNS */
37 /******************************************************************************/
38 #ifdef JEMALLOC_H_INLINES
40 #endif /* JEMALLOC_H_INLINES */
41 /******************************************************************************/