]> git.saurik.com Git - redis.git/blob - deps/jemalloc.orig/include/jemalloc/internal/huge.h
Jemalloc updated to 3.0.0.
[redis.git] / deps / jemalloc.orig / include / jemalloc / internal / huge.h
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
12 #ifdef JEMALLOC_STATS
13 /* Huge allocation statistics. */
14 extern uint64_t huge_nmalloc;
15 extern uint64_t huge_ndalloc;
16 extern size_t huge_allocated;
17 #endif
18
19 /* Protects chunk-related data structures. */
20 extern malloc_mutex_t huge_mtx;
21
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,
25 size_t extra);
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);
30 #ifdef JEMALLOC_PROF
31 prof_ctx_t *huge_prof_ctx_get(const void *ptr);
32 void huge_prof_ctx_set(const void *ptr, prof_ctx_t *ctx);
33 #endif
34 bool huge_boot(void);
35
36 #endif /* JEMALLOC_H_EXTERNS */
37 /******************************************************************************/
38 #ifdef JEMALLOC_H_INLINES
39
40 #endif /* JEMALLOC_H_INLINES */
41 /******************************************************************************/