]>
git.saurik.com Git - redis.git/blob - deps/jemalloc/include/jemalloc/internal/huge.h
e8513c933e242340d28a129b606e772b955d8da2
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
12 /* Huge allocation statistics. */
13 extern uint64_t huge_nmalloc
;
14 extern uint64_t huge_ndalloc
;
15 extern size_t huge_allocated
;
17 /* Protects chunk-related data structures. */
18 extern malloc_mutex_t huge_mtx
;
20 void *huge_malloc(size_t size
, bool zero
);
21 void *huge_palloc(size_t size
, size_t alignment
, bool zero
);
22 void *huge_ralloc_no_move(void *ptr
, size_t oldsize
, size_t size
,
24 void *huge_ralloc(void *ptr
, size_t oldsize
, size_t size
, size_t extra
,
25 size_t alignment
, bool zero
);
26 void huge_dalloc(void *ptr
, bool unmap
);
27 size_t huge_salloc(const void *ptr
);
28 prof_ctx_t
*huge_prof_ctx_get(const void *ptr
);
29 void huge_prof_ctx_set(const void *ptr
, prof_ctx_t
*ctx
);
31 void huge_prefork(void);
32 void huge_postfork_parent(void);
33 void huge_postfork_child(void);
35 #endif /* JEMALLOC_H_EXTERNS */
36 /******************************************************************************/
37 #ifdef JEMALLOC_H_INLINES
39 #endif /* JEMALLOC_H_INLINES */
40 /******************************************************************************/